Permalink
Browse files

SERVER-8455 Fix buildbot failure caused by accessing uninitialized me…

…mory
  • Loading branch information...
1 parent 39d12aa commit 4884f194b011377c05a0b15aecb803efe6af7234 @renctan renctan committed with monkey101 Feb 9, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/mongo/s/config.cpp
View
@@ -793,7 +793,9 @@ namespace mongo {
conn->done();
}
catch ( const DBException& e ) {
- conn->kill();
+ if (conn) {
+ conn->kill();
+ }
// We need to catch DBExceptions b/c sometimes we throw them
// instead of socket exceptions when findN fails

0 comments on commit 4884f19

Please sign in to comment.