Commit 06159db9 authored by Yoni Fogel's avatar Yoni Fogel

Revert "[t:2555] Prevent toku_free(NULL) in regular (not LOADER_USE_PUTS) loader."

This reverts commit 755bb963ba9c47fcf2c90da195a15544be100dc6.
This reverts svn commit r19634

toku_free(NULL) is safe.  No reason to prevent it.

git-svn-id: file:///svn/toku/tokudb@19685 c7de825b-a66e-492c-adef-691d508d4ae1
parent aac6eb5b
......@@ -877,9 +877,8 @@ static int loader_do_i (BRTLOADER bl,
{ // clean up this stuff early, to save memory
//s(key,val).data might be NULL if flags==0 (see above)
if (skey.data) toku_free(skey.data);
if (sval.data) toku_free(sval.data);
toku_free(skey.data);
toku_free(sval.data);
toku_free (pkey.data);
toku_free (pval.data);
skey.data = sval.data = pkey.data = pval.data = NULL; // set to NULL so that the final cleanup won't free them again.
......
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