From 56c65efbb5748cc780fcac2ddf1a0edbf56db020 Mon Sep 17 00:00:00 2001 From: Susan LoVerso Date: Mon, 8 Dec 2014 12:36:02 -0500 Subject: Add session dhandle hash lists. #1439 --- src/conn/conn_open.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/conn/conn_open.c') 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)); -- cgit v1.2.1