Commit 78ce69f0 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 2312f0d3
......@@ -1265,7 +1265,7 @@ int toku_lt_create(toku_lock_tree** ptree, BOOL duplicates,
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