menu_entries_cbs_deferred_push: Fix potental memory leaks

This commit is contained in:
Lioncash 2015-04-02 08:45:08 -04:00
parent 32853a0134
commit a69bd00a0c

View File

@ -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;
}