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 May 21, 2020
1 parent 48220a8 commit 503c9e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libnetdata/socket/socket.c
Original file line number Diff line number Diff line change
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 503c9e7

Please sign in to comment.