Commit 1a3cc4bf authored by Yoni Fogel's avatar Yoni Fogel

[t:2418] Fixed double-free in lock tree found by coverity

git-svn-id: file:///svn/toku/tokudb@18136 c7de825b-a66e-492c-adef-691d508d4ae1
parent fbb1b6ed
......@@ -1265,7 +1265,7 @@ cleanup:
if (tmp_tree->mainread) { toku_rt_close(tmp_tree->mainread); }
if (tmp_tree->borderwrite) { toku_rt_close(tmp_tree->borderwrite); }
if (tmp_tree->rth) { toku_rth_close(tmp_tree->rth); }
if (tmp_tree->txns_to_unlock) { toku_rth_close(tmp_tree->rth); }
if (tmp_tree->txns_to_unlock) { toku_rth_close(tmp_tree->txns_to_unlock); }
if (tmp_tree->buf) { user_free(tmp_tree->buf); }
user_free(tmp_tree);
}
......
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