Fix a memory leak (#6945)
Vladimir Kobal committed
Sep 25, 2019 at 14:51 UTC
6acaac795bb665d2711b3625a473799712d38ca6
1 file changed
+3
libnetdata/socket/socket.c
+3
@@ -1300,6 +1300,9 @@ inline void poll_close_fd(POLLINFO *pi) {
1300
freez(pi->client_port);
1301
pi->client_port = NULL;
1302
1303
+ freez(pi->client_host);
1304
+ pi->client_host = NULL;
1305
+
1306
pi->next = p->first_free;
1307
p->first_free = pi;
1308