Addresses #1510 Fix memory leak in end checkpoint

git-svn-id: file:///svn/toku/tokudb@10921 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2013-04-16 23:57:47 -04:00
parent cc888f1ea3
commit de8165e246

View file

@ -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;