From 4b284d9aab2bd79bc44457250f2e08bc07f3b68c Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Wed, 26 May 2010 01:44:09 -0400 Subject: [PATCH] fix conn leak --- client/parallel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/parallel.cpp b/client/parallel.cpp index 3aed0d8e56b..606f020ee34 100644 --- a/client/parallel.cpp +++ b/client/parallel.cpp @@ -320,6 +320,7 @@ namespace mongo { ScopedDbConnection conn( res->_server ); res->_ok = conn->runCommand( res->_db , res->_cmd , res->_res ); res->_done = true; + conn.done(); } shared_ptr Future::spawnCommand( const string& server , const string& db , const BSONObj& cmd ){