summaryrefslogtreecommitdiff
path: root/src/conn/conn_open.c
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-12-08 12:36:02 -0500
committerSusan LoVerso <sue@wiredtiger.com>2014-12-08 12:36:02 -0500
commit56c65efbb5748cc780fcac2ddf1a0edbf56db020 (patch)
tree115f6c58fa68688464cc41398195527b145cf921 /src/conn/conn_open.c
parent0dad9cd6abb5b00aae1de56b303f22d222997c56 (diff)
downloadmongo-56c65efbb5748cc780fcac2ddf1a0edbf56db020.tar.gz
Add session dhandle hash lists. #1439
Diffstat (limited to 'src/conn/conn_open.c')
-rw-r--r--src/conn/conn_open.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/conn/conn_open.c b/src/conn/conn_open.c
index 04de2a58422..d386236db5d 100644
--- a/src/conn/conn_open.c
+++ b/src/conn/conn_open.c
@@ -196,8 +196,15 @@ __wt_connection_close(WT_CONNECTION_IMPL *conn)
*/
if ((s = conn->sessions) != NULL)
for (i = 0; i < conn->session_size; ++s, ++i)
- if (s != session)
+ if (s != session) {
+ /*
+ * If a dhandle hash array was allocated,
+ * free it now.
+ */
+ if (s->dhhash != NULL)
+ __wt_free(session, s->dhhash);
__wt_free(session, s->hazard);
+ }
/* Destroy the handle. */
WT_TRET(__wt_connection_destroy(conn));