fix leak with primary_rowset [t:2591]

git-svn-id: file:///svn/toku/tokudb@20334 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Dave Wells 2013-04-16 23:59:13 -04:00 committed by Yoni Fogel
parent b611db04c2
commit 366941f3cd

View file

@ -304,6 +304,8 @@ static void brtloader_destroy (BRTLOADER bl, BOOL is_error) {
destroy_merge_fileset(&bl->fs[i]);
toku_free(bl->fs);
destroy_rowset(&bl->primary_rowset);
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.
}