From 4473a2e9aa7bc786275d1f111cf84570e4a93633 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Fri, 22 Sep 2017 22:33:16 +0500 Subject: [PATCH] BUG/MINOR: contrib/halog: fixing small memory leak Issue was identified by cppcheck --- contrib/halog/halog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index fc927bdd93..cb815d8cc2 100644 --- a/contrib/halog/halog.c +++ b/contrib/halog/halog.c @@ -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; }