Skip to content

Commit

Permalink
network: release ares_addrinfo after using(fluent#3572) (fluent#3575)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 authored and Shikugawa committed Jun 14, 2021
1 parent 22d0a2e commit 3ac5b0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flb_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ static void flb_net_getaddrinfo_callback(void *arg, int status, int timeouts,
else {
context->result_code = 0;
}
ares_freeaddrinfo(res);
}
else {
context->result_code = 1;
Expand Down

0 comments on commit 3ac5b0e

Please sign in to comment.