free string pointer in xkbswitch parsing

CID 1368345
This commit is contained in:
Mike Blumenkrantz 2017-02-03 15:13:48 -05:00
parent e2f8d2ba69
commit 0fd251c437
1 changed files with 5 additions and 1 deletions

View File

@ -293,7 +293,11 @@ parse_rules(void)
if (i < (sizeof(grplabels) / sizeof(grplabels[0]))) continue; if (i < (sizeof(grplabels) / sizeof(grplabels[0]))) continue;
optmisc = eina_list_append(optmisc, option); optmisc = eina_list_append(optmisc, option);
} }
else continue; else
{
free(tmp);
continue;
}
free(tmp); free(tmp);
} }