> *update* without "delete" is working fine!
no, it leaks memory.
but well, that should give you a hint.
1 2 3
l = aux; //`l' and `aux' point to the same place
delete aux; //you destroy whatever `aux' and `l' were pointing to
//here `l' is invalid (can't be dereferenced)
same error on line 19
by the way, I suggest you to differentiate between a list and a node and make an `insert()' function