From bf8125f4e96a011ec28cc58b225bb815f72fc53c Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 20 Jul 2009 12:18:20 +0200 Subject: bugfix: minor static memory leak while reading configuration This did NOT leak based on message volume. Also, did some cleanup during the commit. --- template.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'template.c') diff --git a/template.c b/template.c index 0116e782..f3a8e057 100644 --- a/template.c +++ b/template.c @@ -566,8 +566,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); /* Check frompos, if it has an R, then topos should be a regex */ if(*p == ':') { -- cgit