closes[t:2687] fix memory leak

git-svn-id: file:///svn/toku/tokudb@20865 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2013-04-16 23:59:18 -04:00
parent a9c554b353
commit e520e8bcf7

View file

@ -156,6 +156,8 @@ static void run_recover (void) {
assert(v.size == 2); assert(v.size == 2);
assert(memcmp(k.data, "a", 2) == 0); assert(memcmp(k.data, "a", 2) == 0);
assert(memcmp(v.data, "b", 2) == 0); assert(memcmp(v.data, "b", 2) == 0);
toku_free(k.data);
toku_free(v.data);
r = cursor->c_close(cursor); CKERR(r); r = cursor->c_close(cursor); CKERR(r);