Mercurial > repos > blastem
diff romdb.c @ 1593:24508cb54f87
Fix a number of other memory errors (mostly leaks again) identified by valgrind
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 28 Jun 2018 09:27:05 -0700 |
parents | 31effaadf877 |
children | c206a422d466 |
line wrap: on
line diff
--- a/romdb.c Fri Jun 22 23:10:27 2018 -0700 +++ b/romdb.c Thu Jun 28 09:27:05 2018 -0700 @@ -608,6 +608,7 @@ } if (matching_chunks == 0) { //Nothing mapped in the relevant range for the lock-on cart, ignore this mapping + free_rom_info(&lock_info); return; } else if (matching_chunks > 1) { state->info->map_chunks += matching_chunks - 1;