From d8f00298183f7a65f9a5ab9f10b851e2c2c6746c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 3 Sep 2012 18:46:08 +0200 Subject: Fix a memory leak in "outname" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In all cases, the variable already contains a newly allocated copy. Signed-off-by: Miloslav Trmač --- template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'template.c') diff --git a/template.c b/template.c index 5d933619..074e12b5 100644 --- a/template.c +++ b/template.c @@ -1540,7 +1540,7 @@ createPropertyTpe(struct template *pTpl, struct cnfobj *o) pTpe->data.field.options.bSecPathReplace = 1; break; } - pTpe->fieldName = ustrdup(outname); + pTpe->fieldName = outname; if(outname != NULL) pTpe->lenFieldName = ustrlen(outname); pTpe->data.field.eDateFormat = datefmt; -- cgit v1.2.3