summaryrefslogtreecommitdiffstats
path: root/template.c
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:35:29 +0200
commitd5b9d43f6abfb8af1433062bb32953cb422ac380 (patch)
tree52819c5d5ccdf0cedfcbc990af2629b53bb8cd96 /template.c
parenta38ccf789944a0ffcba23dff40e318ad6475e451 (diff)
downloadrsyslog-d5b9d43f6abfb8af1433062bb32953cb422ac380.tar.gz
rsyslog-d5b9d43f6abfb8af1433062bb32953cb422ac380.tar.xz
rsyslog-d5b9d43f6abfb8af1433062bb32953cb422ac380.zip
fix small memory leak with string-type templates
Diffstat (limited to 'template.c')
-rw-r--r--template.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/template.c b/template.c
index 06306115..9cf35fd7 100644
--- a/template.c
+++ b/template.c
@@ -1753,6 +1753,7 @@ tplProcessCnf(struct cnfobj *o)
pTpl->optFormatEscape = JSON_ESCAPE;
finalize_it:
+ free(tplStr);
if(pvals != NULL)
cnfparamvalsDestruct(pvals, &pblk);
if(iRet != RS_RET_OK) {