From 804cbee541f24f61be41d6405754bf082da288a0 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 11 Mar 2011 15:45:44 +0100 Subject: bugfix: very minor memory leak in imfile almost cosmetic: leaks a few bytes once during a run -- more a problem for valgrind testing -- not for practical use --- plugins/imfile/imfile.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/imfile') diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c index de71fb74..0b24d08d 100644 --- a/plugins/imfile/imfile.c +++ b/plugins/imfile/imfile.c @@ -294,6 +294,11 @@ BEGINrunInput int i; int bHadFileData; /* were there at least one file with data during this run? */ CODESTARTrunInput + /* free config vars that are still allocated (at this point, we do no longer need them) */ + free(pszFileName); + free(pszFileTag); + free(pszStateFile); + pthread_cleanup_push(inputModuleCleanup, NULL); while(glbl.GetGlobalInputTermState() == 0) { do { -- cgit