Fixed memory leak.

This commit is contained in:
Armin Novak 2014-11-16 14:40:30 +01:00
parent 1b6cb6349e
commit 643a309537

View File

@ -402,14 +402,20 @@ int WLog_ParseFilters()
g_Filters = calloc(g_FilterCount, sizeof(wLogFilter));
if (!g_Filters)
{
free(strs);
return -1;
}
for (count = 0; count < g_FilterCount; count++)
{
status = WLog_ParseFilter(&g_Filters[count], strs[count]);
if (status < 0)
{
free(strs);
return -1;
}
}
free(strs);