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:
@@ -1167,7 +1167,7 @@ load_elf_symbol_table(int fd, struct elf_image_info *image)
|
|||||||
if (length < size) {
|
if (length < size) {
|
||||||
TRACE(("error reading in symbol table\n"));
|
TRACE(("error reading in symbol table\n"));
|
||||||
status = B_ERROR;
|
status = B_ERROR;
|
||||||
goto error1;
|
goto error2;
|
||||||
}
|
}
|
||||||
|
|
||||||
numSymbols = size / sizeof(struct Elf32_Sym);
|
numSymbols = size / sizeof(struct Elf32_Sym);
|
||||||
|
|||||||
Reference in New Issue
Block a user