Prevent memory leak

This commit is contained in:
twinaphex 2017-01-13 18:24:24 +01:00
parent a4523e0b2b
commit a859d2dc3f

View File

@ -126,6 +126,9 @@ static void core_info_list_resolve_all_firmware(
free(tmp);
tmp = NULL;
}
if (tmp)
free(tmp);
tmp = NULL;
if (config_get_bool(config, opt_key , &tmp_bool))
info->firmware[c].optional = tmp_bool;
}