diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-09-25 14:51:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-25 14:51:17 +0300 |
commit | 6acaac795bb665d2711b3625a473799712d38ca6 (patch) | |
tree | 6a266a1b79dac429d47972052443990881c9f6e0 /libnetdata/socket | |
parent | fa747be4cb14d0d35055b9997c4ff14c0e385abb (diff) |
Fix a memory leak (#6945)
Diffstat (limited to 'libnetdata/socket')
-rw-r--r-- | libnetdata/socket/socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnetdata/socket/socket.c b/libnetdata/socket/socket.c index ee38a4ca89..fa1414dc0c 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; |