From 82f14c80404fe44e5b02afbaa68a4a2634ff50b9 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 18 Oct 2013 10:17:49 +0200 Subject: fix cosmetic memleak when property filter is disabled --- grammar/rainerscript.c | 1 + 1 file changed, 1 insertion(+) (limited to 'grammar/rainerscript.c') diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c index ff8eba0c..4defc025 100644 --- a/grammar/rainerscript.c +++ b/grammar/rainerscript.c @@ -2698,6 +2698,7 @@ cnfstmtNewPROPFILT(char *propfilt, struct cnfstmt *t_then) cnfstmt->d.s_propfilt.pCSCompValue = NULL; if(DecodePropFilter((uchar*)propfilt, cnfstmt) != RS_RET_OK) { cnfstmt->nodetype = S_NOP; /* disable action! */ + cnfstmtDestructLst(t_then); /* we do no longer need this */ } } return cnfstmt; -- cgit v1.2.3