Commit 7eca53d0 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1510 Fix memory leak in end checkpoint

git-svn-id: file:///svn/toku/tokudb@10921 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6e6a621e
......@@ -3346,7 +3346,7 @@ toku_brtheader_end_checkpoint (CACHEFILE cachefile, void *header_v) {
h->checkpoint_count++; // checkpoint succeeded, next checkpoint will save to alternate header location
}
toku_block_translation_note_end_checkpoint(h->blocktable);
brtheader_destroy(h->checkpoint_header);
brtheader_free(h->checkpoint_header);
h->checkpoint_header = NULL;
}
return r;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment