CID 1653. symbolTable could be leaked in certain error cases.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38116 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2010-08-15 12:46:10 +00:00
parent 372b00b0f7
commit 5574811008

View File

@ -1167,7 +1167,7 @@ load_elf_symbol_table(int fd, struct elf_image_info *image)
if (length < size) {
TRACE(("error reading in symbol table\n"));
status = B_ERROR;
goto error1;
goto error2;
}
numSymbols = size / sizeof(struct Elf32_Sym);