From a69bd00a0cd31a4a543229844cf44750254500f1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 Apr 2015 08:45:08 -0400 Subject: [PATCH] menu_entries_cbs_deferred_push: Fix potental memory leaks --- menu/menu_entries_cbs_deferred_push.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/menu/menu_entries_cbs_deferred_push.c b/menu/menu_entries_cbs_deferred_push.c index 6fe6793851..174b5ff1a4 100644 --- a/menu/menu_entries_cbs_deferred_push.c +++ b/menu/menu_entries_cbs_deferred_push.c @@ -641,10 +641,16 @@ static int deferred_push_cursor_manager_list_deferred(void *data, void *userdata return -1; if (!config_get_string(conf, "query", &query)) + { + config_file_free(conf); return -1; + } if (!config_get_string(conf, "rdb", &rdb)) + { + config_file_free(conf); return -1; + } fill_pathname_join(rdb_path, settings->content_database, rdb, sizeof(rdb_path)); @@ -655,6 +661,7 @@ static int deferred_push_cursor_manager_list_deferred(void *data, void *userdata menu_list_populate_generic(list, path, label, type); + config_file_free(conf); return 0; }