diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-11-28 19:26:03 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-11-28 19:26:03 +0000 |
commit | bdfd73e51719d86116d0825540291df67fb30ed6 (patch) | |
tree | 420a0ed1a1c8e6b6d1da175b1fe6345a1b1b8a18 /src/meta | |
parent | 4736de42d3724057c8e460227a7b7c1109196c27 (diff) | |
download | mongo-bdfd73e51719d86116d0825540291df67fb30ed6.tar.gz |
I introduced a memory leak: free the checkpoint structure's memory,
even if we're not opening a checkpoint ourselves (salvage, verify,
or upgrade).
Diffstat (limited to 'src/meta')
-rw-r--r-- | src/meta/meta_ckpt.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/meta/meta_ckpt.c b/src/meta/meta_ckpt.c index 7fc62650591..844d625c985 100644 --- a/src/meta/meta_ckpt.c +++ b/src/meta/meta_ckpt.c @@ -41,10 +41,7 @@ __wt_meta_checkpoint(WT_SESSION_IMPL *session, * If we don't find a named checkpoint, we're done, they're read-only. * If we don't find a default checkpoint, it's creation, return "no * data" and let our caller handle it. - * - * Clear any stack-allocated structure. */ - WT_CLEAR(*ckpt); if (checkpoint == NULL) { if ((ret = __ckpt_last(session, config, ckpt)) == WT_NOTFOUND) { ret = 0; |