fixes for memory leaks and out of bounds memory access found by ASAN or gcc -flto

This commit is contained in:
kub 2020-12-12 14:57:56 +01:00
parent bb70cc6e66
commit a20300bf1e
8 changed files with 27 additions and 12 deletions

View file

@ -5932,6 +5932,11 @@ void sh2_drc_finish(SH2 *sh2)
free(hash_tables[i]);
hash_tables[i] = NULL;
}
if (unresolved_links[i] != NULL) {
free(unresolved_links[i]);
unresolved_links[i] = NULL;
}
}
if (block_list_pool != NULL)