Fix coverity issue in Mach-O format (#18546)

This commit is contained in:
Francesco Tamagni 2021-04-07 12:28:56 +02:00 committed by GitHub
parent 530c737d5d
commit f47804f3e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2667,6 +2667,7 @@ const RList *MACH0_(get_symbols_list)(struct MACH0_(obj_t) *bin) {
}
if (!bin->symtab || !bin->symstr) {
ht_pp_free (hash);
return list;
}
/* parse dynamic symbol table */