Prevent another memory leak
This commit is contained in:
parent
a859d2dc3f
commit
c162f21f9a
|
@ -357,6 +357,10 @@ static core_info_list_t *core_info_list_new(const char *path)
|
||||||
tmp = NULL;
|
tmp = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tmp)
|
||||||
|
free(tmp);
|
||||||
|
tmp = NULL;
|
||||||
|
|
||||||
if (config_get_bool(conf, "supports_no_game",
|
if (config_get_bool(conf, "supports_no_game",
|
||||||
&tmp_bool))
|
&tmp_bool))
|
||||||
core_info[i].supports_no_game = tmp_bool;
|
core_info[i].supports_no_game = tmp_bool;
|
||||||
|
|
Loading…
Reference in New Issue