Skip to content

Commit f35ff8e

Browse files
committed
Try fix lsan
1 parent 028fce5 commit f35ff8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Common/CaresPTRResolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ struct AresChannelRAII
136136

137137
~AresChannelRAII()
138138
{
139+
ares_destroy(channel);
140+
139141
free(dns_state.poll_fds);
140142
free(dns_state.ares_fds);
141-
142-
ares_destroy(channel);
143143
}
144144

145145
dnsstate_t & getDNSState()

0 commit comments

Comments
 (0)