From 23d3d515a5fe5ee234ff1062bcbdde2aaa9c6bd9 Mon Sep 17 00:00:00 2001 From: Vladimir Kobal Date: Wed, 25 Sep 2019 14:51:17 +0300 Subject: [PATCH] Fix a memory leak (#6945) --- libnetdata/socket/socket.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libnetdata/socket/socket.c b/libnetdata/socket/socket.c index ee38a4ca894f6a..fa1414dc0c837c 100644 --- a/libnetdata/socket/socket.c +++ b/libnetdata/socket/socket.c @@ -1300,6 +1300,9 @@ inline void poll_close_fd(POLLINFO *pi) { freez(pi->client_port); pi->client_port = NULL; + freez(pi->client_host); + pi->client_host = NULL; + pi->next = p->first_free; p->first_free = pi;