Merge pull request #2727 from rgerhards/imfile-fix-double-free

imfile bugfix: double-free on module shutdown
This commit is contained in:
Rainer Gerhards 2018-06-12 14:41:08 +02:00 committed by GitHub
commit 03636846ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1876,8 +1876,6 @@ CODESTARTfreeCnf
fs_node_destroy(pModConf->conf_tree);
//move_list_destruct(pModConf);
for(inst = pModConf->root ; inst != NULL ; ) {
if(inst->startRegex != NULL)
regfree(&inst->end_preg);
free(inst->pszBindRuleset);
free(inst->pszFileName);
free(inst->pszTag);