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

test944a has a memory leak. Fix it. Addresses #944.

git-svn-id: file:///svn/tokudb@5277 c7de825b-a66e-492c-adef-691d508d4ae1
parent 83c0114c
...@@ -53,8 +53,8 @@ void run (int choice) { ...@@ -53,8 +53,8 @@ void run (int choice) {
DBC *c; DBC *c;
r=db->cursor(db, txn, &c, 0); CKERR(r); r=db->cursor(db, txn, &c, 0); CKERR(r);
DBT kdbt,vdbt; DBT kdbt,vdbt;
dbt_init_malloc(&kdbt); dbt_init(&kdbt, 0, 0);
dbt_init_malloc(&vdbt); dbt_init(&vdbt, 0, 0);
i=0; i=0;
while (0==(r=c->c_get(c, &kdbt, &vdbt, DB_NEXT))) { while (0==(r=c->c_get(c, &kdbt, &vdbt, DB_NEXT))) {
i++; i++;
......
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