Skip to content

dns: fix cares memory leak

fix cares memory leak.

I have a question that the function AfterGetAddrInfo return directly when IsNothing is true , is it expected? this make the callback of dns.lookup never be called.

cc @addaleax Refs: https://github.com/nodejs/node/pull/39735

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading