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 jackyhuang85 committed Jan 1, 2020
1 parent 13abb87 commit 23d3d51
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 23d3d51

Please sign in to comment.