Commit 91891cbb authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4541] fix memory leak of cmp_descriptor

git-svn-id: file:///svn/toku/tokudb@41610 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8d0368fd
......@@ -3474,6 +3474,9 @@ cleanup:
static void
brt_update_cmp_descriptor(BRT t) {
if (t->h->cmp_descriptor.dbt.data != NULL) {
toku_free(t->h->cmp_descriptor.dbt.data);
}
t->h->cmp_descriptor.dbt.size = t->h->descriptor.dbt.size;
t->h->cmp_descriptor.dbt.data = toku_xmemdup(
t->h->descriptor.dbt.data,
......
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