mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
Fix a memory leak in the test. Addresses #101.
git-svn-id: file:///svn/tokudb@858 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
22d8e86bc9
commit
8fbc47e74c
1 changed files with 1 additions and 0 deletions
|
@ -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[]) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue