From 6658bb2da60f41bc4c495d446879c95de0c9dd01 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 18 May 2018 08:56:19 +0200 Subject: [PATCH] imfile bugfix: double-free on module shutdown detected by code review --- plugins/imfile/imfile.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c index 20a3ae670..332210ec2 100644 --- a/plugins/imfile/imfile.c +++ b/plugins/imfile/imfile.c @@ -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);