Commit 82361808 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Use toku_malloc, not malloc. Fixes #169.

git-svn-id: file:///svn/tokudb@1332 c7de825b-a66e-492c-adef-691d508d4ae1
parent 442b6ef6
......@@ -762,8 +762,7 @@ static int toku_c_pget_save_original_data(DBT* dst, DBT* src) {
dst->ulen = 0;
if (src->size) {
if (!src->data) return EINVAL;
//We are pretending this use from the user, so we use malloc and NOT toku_malloc.
dst->data = malloc(src->size);
dst->data = toku_malloc(src->size);
if (!dst->data) {
r = ENOMEM;
return r;
......
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