summaryrefslogtreecommitdiffstats
path: root/grammar/rainerscript.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-21 17:45:39 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-21 17:45:39 +0200
commit052f8e2ef64ca039219ac83a9d9372f3eb3a5aed (patch)
treed2671048393a397a28a1b8ebe39088c4bcfa8da6 /grammar/rainerscript.c
parent35b71135033e1be0c7759167d8151533f98b93e9 (diff)
downloadrsyslog-052f8e2ef64ca039219ac83a9d9372f3eb3a5aed.tar.gz
rsyslog-052f8e2ef64ca039219ac83a9d9372f3eb3a5aed.tar.xz
rsyslog-052f8e2ef64ca039219ac83a9d9372f3eb3a5aed.zip
bugfix: abort in omfile (in brand-new code)
Diffstat (limited to 'grammar/rainerscript.c')
-rw-r--r--grammar/rainerscript.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c
index 0b2ee7cb..43c5a677 100644
--- a/grammar/rainerscript.c
+++ b/grammar/rainerscript.c
@@ -449,6 +449,8 @@ cnfactlstNew(enum cnfactType actType, struct nvlst *lst, char *actLine)
actlst->next = NULL;
actlst->syslines = NULL;
actlst->actType = actType;
+ actlst->lineno = yylineno;
+ actlst->cnfFile = strdup(cnfcurrfn);
if(actType == CNFACT_V2)
actlst->data.lst = lst;
else
@@ -484,6 +486,7 @@ cnfactlstDestruct(struct cnfactlst *actlst)
while(actlst != NULL) {
toDel = actlst;
actlst = actlst->next;
+ free(toDel->cnfFile);
cnfcfsyslinelstDestruct(toDel->syslines);
if(toDel->actType == CNFACT_V2)
nvlstDestruct(toDel->data.lst);