Skip to content

Commit

Permalink
Fix a memory leak (netdata#6945)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlvkobal authored and Saruspete committed Oct 9, 2019
1 parent cf455a1 commit 9b542b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libnetdata/socket/socket.c
Expand Up @@ -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;

Expand Down

0 comments on commit 9b542b4

Please sign in to comment.