Commit 9a48f7b0 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel
Browse files

[t:4580] free brtnode after checking garbage stats


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