summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-11 09:35:29 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-11 09:37:34 +0200
commit9de5fb77ebc219c0633c6204addaa6997a1da9d2 (patch)
treee82c0b71f80ab07367a9286d9402cc88c9255673
parent573a2163dd7314922760f2d9140dfb0b083909d9 (diff)
downloadrsyslog-9de5fb77ebc219c0633c6204addaa6997a1da9d2.tar.gz
rsyslog-9de5fb77ebc219c0633c6204addaa6997a1da9d2.tar.xz
rsyslog-9de5fb77ebc219c0633c6204addaa6997a1da9d2.zip
fix small memory leak with string-type templates
-rw-r--r--template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/template.c b/template.c
index 8558dd8a..89e9a0c8 100644
--- a/template.c
+++ b/template.c
@@ -1847,6 +1847,7 @@ tplProcessCnf(struct cnfobj *o)
pTpl->optFormatEscape = JSON_ESCAPE;
finalize_it:
+ free(tplStr);
if(pvals != NULL)
cnfparamvalsDestruct(pvals, &pblk);
if(iRet != RS_RET_OK) {