refs #5671 another leak

git-svn-id: file:///svn/toku/tokudb@50128 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Leif Walsh 2013-04-17 00:01:17 -04:00 committed by Yoni Fogel
parent ddc8d821c1
commit 83c6154273

View file

@ -1152,7 +1152,7 @@ merge_leaf_nodes(FTNODE a, FTNODE b)
LEAFENTRY CAST_FROM_VOIDP(le, lev);
uint32_t 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;
}