diff options
author | Susan LoVerso <sue@wiredtiger.com> | 2014-12-08 12:36:02 -0500 |
---|---|---|
committer | Susan LoVerso <sue@wiredtiger.com> | 2014-12-08 12:36:02 -0500 |
commit | 56c65efbb5748cc780fcac2ddf1a0edbf56db020 (patch) | |
tree | 115f6c58fa68688464cc41398195527b145cf921 /src/conn/conn_open.c | |
parent | 0dad9cd6abb5b00aae1de56b303f22d222997c56 (diff) | |
download | mongo-56c65efbb5748cc780fcac2ddf1a0edbf56db020.tar.gz |
Add session dhandle hash lists. #1439
Diffstat (limited to 'src/conn/conn_open.c')
-rw-r--r-- | src/conn/conn_open.c | 9 |
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)); |