Fix alloc-dealloc mismatch

The filter was deleted using free but allocated with new.
This commit is contained in:
Markus Mäkelä 2018-08-01 16:38:51 +03:00
parent 8b9f7cc458
commit b14cfea7e3
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -106,7 +106,7 @@ FilterDef* filter_alloc(const char *name, const char *module, MXS_CONFIG_PARAMET
filter_free_parameters(filter);
MXS_FREE(my_name);
MXS_FREE(my_module);
MXS_FREE(filter);
delete filter;
return NULL;
}