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 --- blastem.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'blastem.c') 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 { -- cgit v1.2.3