From dd2e1a69060b9eabde255051e088bbd6bc6e02de Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 9 Feb 2010 17:47:16 +0100 Subject: fixed a small memory leak during config file parsing --- template.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'template.c') diff --git a/template.c b/template.c index 8c13573b..9c4a2a39 100644 --- a/template.c +++ b/template.c @@ -563,8 +563,11 @@ static int do_Parameter(unsigned char **pp, struct template *pTpl) /* got the name */ cstrFinalize(pStrB); - if(propNameToID(pStrB, &pTpe->data.field.propid) != RS_RET_OK) + if(propNameToID(pStrB, &pTpe->data.field.propid) != RS_RET_OK) { + cstrDestruct(&pStrB); return 1; + } + cstrDestruct(&pStrB); /* no longer needed, now use ID */ /* Check frompos, if it has an R, then topos should be a regex */ if(*p == ':') { -- cgit