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:
Rene Gollent 2010-07-31 18:29:01 +00:00
parent f6896f2175
commit 62ffe41831
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}
}