diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2015-04-20 16:15:41 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-04-25 12:50:52 +1000 |
commit | 4a80c29d5f081fe9e0406a894a13c3f6d9d3becc (patch) | |
tree | 329ccdbf1199115ce56c52b5da1733cc0070b228 | |
parent | 14f51cac0408fa93d9d3ea1e0d539aa512fa463b (diff) | |
download | mongo-4a80c29d5f081fe9e0406a894a13c3f6d9d3becc.tar.gz |
Clear session->dhandle so that future error messages don't dereference freed memory.
-rw-r--r-- | src/evict/evict_lru.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c index fd8bffdf230..7705a1c7f09 100644 --- a/src/evict/evict_lru.c +++ b/src/evict/evict_lru.c @@ -656,6 +656,7 @@ __evict_clear_all_walks(WT_SESSION_IMPL *session) btree->evict_ref = NULL; WT_TRET(__wt_page_release(session, ref, 0)); } + session->dhandle = NULL; } return (ret); |