Menu

#291 List.cc:248: bad code order ?

cannot reproduce
open
nobody
None
5
2015-09-12
2015-09-12
dcb
No

[List.cc:248]: (error) Returning/dereferencing 'o' after it is deallocated / released

Source code is

if(action == LIST_REMOVE_DESTROY) delete o;
return List::Remove(o);

After something has been deleted, you can't use it.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB