summaryrefslogtreecommitdiff
path: root/blastem.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 /blastem.c
parente1d177b8429e4eb59f5a6e853009dbf97ab95068 (diff)
Fix a number of other memory errors (mostly leaks again) identified by valgrind
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/blastem.c b/blastem.c
index 138532b..bc94462 100644
--- a/blastem.c
+++ b/blastem.c
@@ -389,6 +389,7 @@ void init_system_with_media(const char *path, system_type force_stype)
game_system->next_context = menu_system;
setup_saves(&cart, &info, game_system);
update_title(info.name);
+ free(info.name);
}
int main(int argc, char ** argv)
@@ -620,6 +621,7 @@ int main(int argc, char ** argv)
setup_saves(&cart, &info, current_system);
update_title(info.name);
+ free(info.name);
if (menu) {
menu_system = current_system;
} else {