summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusan LoVerso <sue@mongodb.com>2016-03-21 15:42:00 -0400
committerSusan LoVerso <sue@mongodb.com>2016-03-21 15:42:00 -0400
commit3a1990ac352b38d5b8355108f9af93a58826e94f (patch)
tree3b42e835c479b0443d5b1ce6a1cd26c496af5ea2
parent9f81190f9929323fef6f27a89c6a2c02fffcfae9 (diff)
downloadmongo-3a1990ac352b38d5b8355108f9af93a58826e94f.tar.gz
WT-2502 Free local allocation.
-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);
/*