Commit 6ef39616 authored by Yoni Fogel's avatar Yoni Fogel

Closes #792

Verification of non-null is done before trying a toku-free

git-svn-id: file:///svn/tokudb@3851 c7de825b-a66e-492c-adef-691d508d4ae1
parent ed2c880e
......@@ -42,7 +42,7 @@ static inline void dbt_set_copy(DBT* ybt, bytevec data, ITEMLEN len, void** stat
if (ybt) {
if (ybt->flags==DB_DBT_REALLOC && ybt->data) toku_free(ybt->data);
else if (ybt->flags==0) {
toku_free(*staticptrp);
if (*staticptrp) toku_free(*staticptrp);
*staticptrp = tmp_data;
}
if (ybt->flags!=DB_DBT_USERMEM) {
......
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