Commit 5e524cfe authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4580] free brtnode after checking garbage stats


git-svn-id: file:///svn/toku/tokudb@40572 c7de825b-a66e-492c-adef-691d508d4ae1
parent 671dba17
...@@ -286,7 +286,7 @@ garbage_helper(BLOCKNUM b, int64_t UU(size), int64_t UU(address), void *extra) { ...@@ -286,7 +286,7 @@ garbage_helper(BLOCKNUM b, int64_t UU(size), int64_t UU(address), void *extra) {
fill_bfe_for_full_read(&bfe, info->h); fill_bfe_for_full_read(&bfe, info->h);
int r = toku_deserialize_brtnode_from(info->f, b, 0, &n, &bfe); int r = toku_deserialize_brtnode_from(info->f, b, 0, &n, &bfe);
if (r != 0) { if (r != 0) {
goto exit; goto no_node;
} }
if (n->height > 0) { if (n->height > 0) {
goto exit; goto exit;
...@@ -299,6 +299,8 @@ garbage_helper(BLOCKNUM b, int64_t UU(size), int64_t UU(address), void *extra) { ...@@ -299,6 +299,8 @@ garbage_helper(BLOCKNUM b, int64_t UU(size), int64_t UU(address), void *extra) {
} }
} }
exit: exit:
toku_brtnode_free(&n);
no_node:
return r; return r;
} }
......
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