diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 12:38:17 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 12:38:17 +0200 |
commit | 1b7e8bd1a8c33f317de66dafed4db16923ae394b (patch) | |
tree | a8d6572552488eac14dbaa91f2281d3ba5979331 /grammar | |
parent | 9fa59604e94f72225180e5fe28d18c4ec3374d61 (diff) | |
download | rsyslog-1b7e8bd1a8c33f317de66dafed4db16923ae394b.tar.gz rsyslog-1b7e8bd1a8c33f317de66dafed4db16923ae394b.tar.xz rsyslog-1b7e8bd1a8c33f317de66dafed4db16923ae394b.zip |
fix regression introduced by last commit
action object was created twice, resulting in memleak
Diffstat (limited to 'grammar')
-rw-r--r-- | grammar/rainerscript.c | 2 |
1 files changed, 1 insertions, 1 deletions
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! */ |