Don't free the symbol iterator on error here since the callers already do so, leading to a double free in such a case. Fixes CID 2008.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37827 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f6896f2175
commit
62ffe41831
|
@ -142,7 +142,6 @@ SharedImage::_Init(debug_symbol_iterator* iterator)
|
|||
if (symbol == NULL || !symbols.AddItem(symbol)) {
|
||||
delete symbol;
|
||||
fprintf(stderr, "%s: Out of memory\n", kCommandName);
|
||||
debug_delete_symbol_iterator(iterator);
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue