From: Ilya Shipitsin Date: Fri, 22 Sep 2017 17:33:16 +0000 (+0500) Subject: BUG/MINOR: contrib/halog: fixing small memory leak X-Git-Tag: v1.8-dev3~70 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=4473a2e9aa7bc786275d1f111cf84570e4a93633;p=haproxy.git BUG/MINOR: contrib/halog: fixing small memory leak Issue was identified by cppcheck --- diff --git a/contrib/halog/halog.c b/contrib/halog/halog.c index fc927bdd9..cb815d8cc 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; }