Fix memory leak

This commit is contained in:
radius 2015-11-15 22:17:43 -05:00
parent d677b94241
commit 5e5133087a
2 changed files with 1 additions and 2 deletions

View File

@ -643,7 +643,7 @@ static bool rarch_game_specific_options(char **output)
*output = game_path;
return true;
}
config_file_free(option_file);
return false;
}

View File

@ -1256,7 +1256,6 @@ static int action_ok_option_create(const char *path,
const char *core_name = NULL;
const char *game_name = NULL;
config_file_t *option_file = NULL;
char core_path[PATH_MAX_LENGTH] = {0};
char game_path[PATH_MAX_LENGTH] = {0};
char config_directory[PATH_MAX_LENGTH] = {0};