summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'template.c')
-rw-r--r--template.c4
1 files changed, 3 insertions, 1 deletions
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;
}