Commit b13ec70a authored by Yoni Fogel's avatar Yoni Fogel

Addresses #2262 [t:2262] Fix memory leak in isolation.c

git-svn-id: file:///svn/toku/tokudb@16821 c7de825b-a66e-492c-adef-691d508d4ae1
parent 798429c3
...@@ -41,6 +41,8 @@ int test_main (int argc, char *argv[]) { ...@@ -41,6 +41,8 @@ int test_main (int argc, char *argv[]) {
r = db->put(db, txnx, dbt_init(&key, "x", 4), dbt_init(&val, "x", 4), 0); CKERR(r); r = db->put(db, txnx, dbt_init(&key, "x", 4), dbt_init(&val, "x", 4), 0); CKERR(r);
dbt_init_malloc(&val); dbt_init_malloc(&val);
r = db->get(db, txna, dbt_init(&key, "x", 4), &val, 0); CKERR(r); r = db->get(db, txna, dbt_init(&key, "x", 4), &val, 0); CKERR(r);
toku_free(val.data);
val.data = NULL;
} }
// r = txnb->commit(txnb, 0); CKERR(r); // r = txnb->commit(txnb, 0); CKERR(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