summaryrefslogtreecommitdiff
path: root/src/btree/bt_discard.c
diff options
context:
space:
mode:
authorMichael Cahill <mjc@wiredtiger.com>2014-04-10 14:34:35 +1000
committerMichael Cahill <mjc@wiredtiger.com>2014-04-10 14:34:35 +1000
commitc9fffc34c184f8a5670dbc88739712a89055ff05 (patch)
tree32544567e0c9792c0c0ff20cb175fa84f3196778 /src/btree/bt_discard.c
parent6153aac98e250c94daf5a50f0f7ad9acd263e976 (diff)
parent08b766d60d1927e6d2ba8f856feb26decbc5a2b4 (diff)
downloadmongo-c9fffc34c184f8a5670dbc88739712a89055ff05.tar.gz
Merge pull request #948 from wiredtiger/new-split-fast-delete
Clean up the fast-delete code (review after merging the new-split branch).
Diffstat (limited to 'src/btree/bt_discard.c')
-rw-r--r--src/btree/bt_discard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/btree/bt_discard.c b/src/btree/bt_discard.c
index c671e11e986..963a8b50eb6 100644
--- a/src/btree/bt_discard.c
+++ b/src/btree/bt_discard.c
@@ -230,6 +230,12 @@ __wt_free_ref(
__wt_free(session, ref->addr);
}
+ /* Free any page-deleted information. */
+ if (ref->page_del != NULL) {
+ __wt_free(session, ref->page_del->update_list);
+ __wt_free(session, ref->page_del);
+ }
+
__wt_overwrite_and_free_len(session, ref, sizeof(*ref));
}