Skip to content

Commit

Permalink
SERVER-8455 Fix buildbot failure caused by accessing uninitialized me…
Browse files Browse the repository at this point in the history
…mory
  • Loading branch information
renctan committed Feb 9, 2013
1 parent 0502e74 commit 5e59e09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mongo/s/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,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
Expand Down

0 comments on commit 5e59e09

Please sign in to comment.