content: Fix potential memory leak

This commit is contained in:
Lioncash 2014-10-26 12:18:00 -04:00
parent 8e12c7811c
commit a058341298
1 changed files with 3 additions and 0 deletions

View File

@ -347,7 +347,10 @@ static bool load_content(const struct retro_subsystem_info *special,
calloc(content->size, sizeof(*info));
if (!info)
{
string_list_free(additional_path_allocs);
return false;
}
for (i = 0; i < content->size; i++)
{