mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
fixes for memory leaks and out of bounds memory access found by ASAN or gcc -flto
This commit is contained in:
parent
bb70cc6e66
commit
a20300bf1e
8 changed files with 27 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue