summaryrefslogtreecommitdiff
path: root/romdb.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-06-28 09:27:05 -0700
committerMichael Pavone <pavone@retrodev.com>2018-06-28 09:27:05 -0700
commit5f1a3e5c10bd84d5049b1a8a56c5aace468761cb (patch)
tree324045c83ac9f6d1475be867ee7b0dba642290c9 /romdb.c
parente1d177b8429e4eb59f5a6e853009dbf97ab95068 (diff)
Fix a number of other memory errors (mostly leaks again) identified by valgrind
Diffstat (limited to 'romdb.c')
-rw-r--r--romdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/romdb.c b/romdb.c
index 35e833f..04dd22b 100644
--- a/romdb.c
+++ b/romdb.c
@@ -608,6 +608,7 @@ void map_iter_fun(char *key, tern_val val, uint8_t valtype, void *data)
}
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;