From 5f1a3e5c10bd84d5049b1a8a56c5aace468761cb Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 28 Jun 2018 09:27:05 -0700 Subject: Fix a number of other memory errors (mostly leaks again) identified by valgrind --- romdb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'romdb.c') 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; -- cgit v1.2.3