Commit 8fbc47e7 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Fix a memory leak in the test. Addresses #101.

git-svn-id: file:///svn/tokudb@858 c7de825b-a66e-492c-adef-691d508d4ae1
parent 22d8e86b
...@@ -32,6 +32,7 @@ void test_get (int dup_mode) { ...@@ -32,6 +32,7 @@ void test_get (int dup_mode) {
memset(&data, 0, sizeof(data)); memset(&data, 0, sizeof(data));
r = db->get(db, null_txn, &key, &data, 0); assert(r == 0); r = db->get(db, null_txn, &key, &data, 0); assert(r == 0);
assert(strcmp(data.data, "b")==0); assert(strcmp(data.data, "b")==0);
r = db->close(db, 0);
} }
int main (int argc, const char *argv[]) { int main (int argc, const char *argv[]) {
......
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