summaryrefslogtreecommitdiffstats
path: root/tools
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:33:12 +0200
commita38ccf789944a0ffcba23dff40e318ad6475e451 (patch)
tree529fb79bd30025635f20a7e7891f747758985548 /tools
parentd752786d4f5536828dc6d5cd1665f06d323e8844 (diff)
downloadrsyslog-a38ccf789944a0ffcba23dff40e318ad6475e451.tar.gz
rsyslog-a38ccf789944a0ffcba23dff40e318ad6475e451.tar.xz
rsyslog-a38ccf789944a0ffcba23dff40e318ad6475e451.zip
fix small memory leak when template is specified in omfile
Diffstat (limited to 'tools')
-rw-r--r--tools/omfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index 1a36343f..715b218c 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);