BUG/MINOR: contrib/halog: fixing small memory leak
authorIlya Shipitsin <chipitsine@gmail.com>
Fri, 22 Sep 2017 17:33:16 +0000 (22:33 +0500)
committerWilly Tarreau <w@1wt.eu>
Tue, 3 Oct 2017 11:52:45 +0000 (13:52 +0200)
Issue was identified by cppcheck

contrib/halog/halog.c

index fc927bd..cb815d8 100644 (file)
@@ -1569,6 +1569,7 @@ void filter_count_url(const char *accept_field, const char *time_field, struct t
 
        if (unlikely(!*e)) {
                truncated_line(linenum, line);
+               free(ustat);
                return;
        }