summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-11 09:33:12 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-11 09:37:43 +0200
commit231abc9709b30b445a6129dddd1087f30f68bcfe (patch)
tree9607268204352ec5e3f17a0baeea6804347ecdec
parent9de5fb77ebc219c0633c6204addaa6997a1da9d2 (diff)
downloadrsyslog-231abc9709b30b445a6129dddd1087f30f68bcfe.tar.gz
rsyslog-231abc9709b30b445a6129dddd1087f30f68bcfe.tar.xz
rsyslog-231abc9709b30b445a6129dddd1087f30f68bcfe.zip
fix small memory leak when template is specified in omfile
-rw-r--r--tools/omfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index 1ccd4a56..efdb61a1 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -820,6 +820,7 @@ ENDcreateInstance
BEGINfreeInstance
CODESTARTfreeInstance
+ free(pData->tplName);
free(pData->f_fname);
if(pData->bDynamicName) {
dynaFileFreeCache(pData);