From 9de5fb77ebc219c0633c6204addaa6997a1da9d2 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 11 Oct 2012 09:35:29 +0200 Subject: fix small memory leak with string-type templates --- template.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3