Commit 8ce38a27 authored by Dave Wells's avatar Dave Wells Committed by Yoni Fogel

fix leak with primary_rowset [t:2591]

git-svn-id: file:///svn/toku/tokudb@20334 c7de825b-a66e-492c-adef-691d508d4ae1
parent d94c0f18
...@@ -304,6 +304,8 @@ static void brtloader_destroy (BRTLOADER bl, BOOL is_error) { ...@@ -304,6 +304,8 @@ static void brtloader_destroy (BRTLOADER bl, BOOL is_error) {
destroy_merge_fileset(&bl->fs[i]); destroy_merge_fileset(&bl->fs[i]);
toku_free(bl->fs); toku_free(bl->fs);
destroy_rowset(&bl->primary_rowset);
for (int i=0; i<bl->N; i++) { for (int i=0; i<bl->N; i++) {
invariant(bl->fractal_queues[i]==NULL); // !!! If this isn't true, we may have to kill the pthreads and destroy the fractal trees. For now just barf. invariant(bl->fractal_queues[i]==NULL); // !!! If this isn't true, we may have to kill the pthreads and destroy the fractal trees. For now just barf.
} }
......
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