Fix big leaks (thanks to valgrind) in filtering/matching by headers,
authorwwp <wwp@free.fr>
Mon, 16 Jan 2017 09:33:05 +0000 (10:33 +0100)
committerwwp <wwp@free.fr>
Mon, 16 Jan 2017 09:33:05 +0000 (10:33 +0100)
saved (lots of) megabytes here.

src/matcher.c

index 83047c06e8aec138673d1c26e978b890474b9f64..0b56382a81d51069010cc3e703679a8bd45e0d56 100644 (file)
@@ -1503,8 +1503,10 @@ static gboolean matcherlist_match_headers(MatcherList *matchers, FILE *fp)
                                } else {
                                        /* further call to matcherprop_match_one_header() can't match
                                           and it irrelevant, so: don't alter the match result */
+                                       procheader_header_free(header);
                                        continue;
                                }
+                               procheader_header_free(header);
                        }
 
                        /* ZERO line must NOT match for the rule to match.