Commit f32b6de6 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5671 another leak


git-svn-id: file:///svn/toku/tokudb@50128 c7de825b-a66e-492c-adef-691d508d4ae1
parent e5e54eac
...@@ -1152,7 +1152,7 @@ merge_leaf_nodes(FTNODE a, FTNODE b) ...@@ -1152,7 +1152,7 @@ merge_leaf_nodes(FTNODE a, FTNODE b)
LEAFENTRY CAST_FROM_VOIDP(le, lev); LEAFENTRY CAST_FROM_VOIDP(le, lev);
uint32_t keylen; uint32_t keylen;
void *key = le_key_and_len(le, &keylen); void *key = le_key_and_len(le, &keylen);
toku_fill_dbt(&a->childkeys[a->n_children-1], toku_xmemdup(key, keylen), keylen); toku_memdup_dbt(&a->childkeys[a->n_children-1], key, keylen);
a->totalchildkeylens += keylen; a->totalchildkeylens += keylen;
} }
......
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