From 5dfd1a5af770910c53fc977dfffb42bebb92973d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 29 Oct 2012 22:39:56 +0900 Subject: [PATCH] Fixed memory leak --- src/AsyncNameResolver.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AsyncNameResolver.cc b/src/AsyncNameResolver.cc index 59021509..eec99ad6 100644 --- a/src/AsyncNameResolver.cc +++ b/src/AsyncNameResolver.cc @@ -165,6 +165,9 @@ ares_addr_node* parseAsyncDNSServers(const std::string& serversOpt) node = 0; } } + if(node) { + delete node; + } return root.next; }