Merge pull request #953 from kamalesh-babulal/lookup_memleak

lookup: Fix memleak in symtab_read()
This commit is contained in:
Josh Poimboeuf 2019-04-23 12:57:14 -05:00 committed by GitHub
commit bc7f34b8c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,6 @@ static void symtab_read(struct lookup_table *table, char *path)
table->obj_syms[i].value = value;
table->obj_syms[i].size = size;
table->obj_syms[i].name = strdup(name);
if (!strcmp(bind, "LOCAL")) {
table->obj_syms[i].bind = STB_LOCAL;