From 64599e94126341f3d19703ea85f6403cbf80a5fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 3 Sep 2012 19:23:06 +0200 Subject: Don't leak property name 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, 3 insertions(+), 1 deletion(-) diff --git a/template.c b/template.c index 074e12b5..f5260191 100644 --- a/template.c +++ b/template.c @@ -1297,7 +1297,7 @@ static rsRetVal createPropertyTpe(struct template *pTpl, struct cnfobj *o) { struct templateEntry *pTpe; - cstr_t *name; + cstr_t *name = NULL; uchar *outname = NULL; int i; int droplastlf = 0; @@ -1582,6 +1582,8 @@ createPropertyTpe(struct template *pTpl, struct cnfobj *o) } finalize_it: + if(name != NULL) + rsCStrDestruct(&name); RETiRet; } -- cgit v1.2.3