Commit 6b09687c authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#2718 refs[t:2718] free the big buffer attached to the temp files when they are closed

git-svn-id: file:///svn/toku/tokudb@21045 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3f1175d0
......@@ -222,7 +222,9 @@ int brtloader_fi_close (struct file_infos *fi, FIDX idx)
fi->n_files_open--;
fi->file_infos[idx.idx].is_open = FALSE;
int r = toku_os_fclose(fi->file_infos[idx.idx].file);
if (r != 0)
if (r == 0)
cleanup_big_buffer(&fi->file_infos[idx.idx]);
else
result = errno;
} else
result = EINVAL;
......
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