Browse Source

RunningQuery constructor also calls clone(), so the caller should not (i.e. fixed memleak).

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac327@3820 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 14 years ago
parent
commit
f541cd3bba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/asiolink/asiolink.cc

+ 1 - 1
src/lib/asiolink/asiolink.cc

@@ -370,7 +370,7 @@ RecursiveQuery::sendQuery(const Question& question, OutputBufferPtr buffer,
     // we're only going to handle UDP.
     asio::io_service& io = dns_service_.get_io_service();
     // It will delete itself when it is done
-    new RunningQuery(io, question, upstream_, buffer, server->clone(),
+    new RunningQuery(io, question, upstream_, buffer, server,
          timeout_, retries_);
 }