From 18ff8d54dde1d0c8603d5f06800ce3d55eb86fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 3 Sep 2012 19:23:18 +0200 Subject: Don't leak configuration value arrays MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- template.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template.c b/template.c index f5260191..7940ab24 100644 --- a/template.c +++ b/template.c @@ -1582,6 +1582,8 @@ createPropertyTpe(struct template *pTpl, struct cnfobj *o) } finalize_it: + if(pvals != NULL) + cnfparamvalsDestruct(pvals, &pblkProperty); if(name != NULL) rsCStrDestruct(&name); RETiRet; @@ -1767,6 +1769,8 @@ tplProcessCnf(struct cnfobj *o) pTpl->optFormatEscape = JSON_ESCAPE; finalize_it: + if(pvals != NULL) + cnfparamvalsDestruct(pvals, &pblk); if(iRet != RS_RET_OK) { if(pTpl != NULL) { /* we simply make the template defunct in this case by setting -- cgit v1.2.3