Fixed wrong variable being freed in qlafilter

The match parameter was freed twice.
This commit is contained in:
Markus Makela
2016-02-29 16:17:15 +02:00
parent 1958df60cc
commit 2990c3b25f

View File

@ -280,10 +280,10 @@ createInstance(char **options, FILTER_PARAMETER **params)
regfree(&my_instance->re); regfree(&my_instance->re);
} }
if (my_instance->match) if (my_instance->nomatch)
{ {
free(my_instance->match); free(my_instance->nomatch);
regfree(&my_instance->re); regfree(&my_instance->nore);
} }
free(my_instance->filebase); free(my_instance->filebase);
free(my_instance->source); free(my_instance->source);