summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/txn/txn_ckpt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/txn/txn_ckpt.c b/src/txn/txn_ckpt.c
index 09d5f54e801..2dab7eef183 100644
--- a/src/txn/txn_ckpt.c
+++ b/src/txn/txn_ckpt.c
@@ -861,6 +861,12 @@ __checkpoint_lock_tree(WT_SESSION_IMPL *session,
WT_CKPT_FOREACH(ckptbase, ckpt)
;
WT_ERR(__wt_strdup(session, name, &ckpt->name));
+ /*
+ * We are now done with the local use of the name. Free the local
+ * allocation, if needed.
+ */
+ __wt_free(session, name_alloc);
+ name_alloc = NULL;
F_SET(ckpt, WT_CKPT_ADD);
/*