From 1b7e8bd1a8c33f317de66dafed4db16923ae394b Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 11 Oct 2012 12:38:17 +0200 Subject: fix regression introduced by last commit action object was created twice, resulting in memleak --- grammar/rainerscript.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grammar/rainerscript.c') diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c index be568238..9483e116 100644 --- a/grammar/rainerscript.c +++ b/grammar/rainerscript.c @@ -2193,7 +2193,7 @@ cnfstmtNewAct(struct nvlst *lst) if(localRet == RS_RET_OK_WARN) { parser_errmsg("warnings occured in file '%s' around line %d", cnfcurrfn, yylineno); - } else if(actionNewInst(lst, &cnfstmt->d.act) != RS_RET_OK) { + } else if(localRet != RS_RET_OK) { parser_errmsg("errors occured in file '%s' around line %d", cnfcurrfn, yylineno); cnfstmt->nodetype = S_NOP; /* disable action! */ -- cgit v1.2.3