summaryrefslogtreecommitdiff
path: root/romdb.c
diff options
context:
space:
mode:
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;