Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…mory
  • Loading branch information...
commit 4884f194b011377c05a0b15aecb803efe6af7234 1 parent 39d12aa
@renctan renctan authored monkey101 committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/mongo/s/config.cpp
View
4 src/mongo/s/config.cpp
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.