Commit 21280f28 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4942], fix leaks in ft-XXX tests

git-svn-id: file:///svn/toku/tokudb@43939 c7de825b-a66e-492c-adef-691d508d4ae1
parent 05152639
......@@ -376,6 +376,7 @@ test_prefetching(void) {
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_ft_destroy_treelock(brt_h);
toku_blocktable_destroy(&brt_h->blocktable);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(ndd);
......
......@@ -318,6 +318,7 @@ test_serialize_nonleaf(void) {
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_ft_destroy_treelock(brt_h);
toku_blocktable_destroy(&brt_h->blocktable);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
......@@ -415,6 +416,7 @@ test_serialize_leaf(void) {
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_ft_destroy_treelock(brt_h);
toku_blocktable_destroy(&brt_h->blocktable);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(ndd);
......
......@@ -171,6 +171,7 @@ test_serialize_leaf(int valsize, int nelts, double entropy) {
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(ndd);
......@@ -305,6 +306,7 @@ test_serialize_nonleaf(int valsize, int nelts, double entropy) {
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(ndd);
......
......@@ -341,6 +341,7 @@ test_serialize_leaf_check_msn(enum ftnode_verify_type bft, BOOL do_clone) {
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(src_ndd);
......@@ -488,6 +489,7 @@ test_serialize_leaf_with_large_pivots(enum ftnode_verify_type bft, BOOL do_clone
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(src_ndd);
......@@ -629,6 +631,7 @@ test_serialize_leaf_with_many_rows(enum ftnode_verify_type bft, BOOL do_clone) {
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(src_ndd);
......@@ -782,6 +785,7 @@ test_serialize_leaf_with_large_rows(enum ftnode_verify_type bft, BOOL do_clone)
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(src_ndd);
......@@ -936,6 +940,7 @@ test_serialize_leaf_with_empty_basement_nodes(enum ftnode_verify_type bft, BOOL
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(src_ndd);
......@@ -1054,6 +1059,7 @@ test_serialize_leaf_with_multiple_empty_basement_nodes(enum ftnode_verify_type b
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(src_ndd);
......@@ -1199,6 +1205,7 @@ test_serialize_leaf(enum ftnode_verify_type bft, BOOL do_clone) {
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(src_ndd);
......@@ -1324,6 +1331,7 @@ test_serialize_nonleaf(enum ftnode_verify_type bft, BOOL do_clone) {
toku_block_free(brt_h->blocktable, BLOCK_ALLOCATOR_TOTAL_HEADER_RESERVE);
toku_blocktable_destroy(&brt_h->blocktable);
toku_ft_destroy_treelock(brt_h);
toku_free(brt_h->h);
toku_free(brt_h);
toku_free(brt);
toku_free(src_ndd);
......
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