Commit 15b113f3 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4920], fix memory leak

git-svn-id: file:///svn/toku/tokudb@44204 c7de825b-a66e-492c-adef-691d508d4ae1
parent d2d3de2e
...@@ -67,6 +67,7 @@ run_recover(void) { ...@@ -67,6 +67,7 @@ run_recover(void) {
CHK(db_env_create(&env, 0)); CHK(db_env_create(&env, 0));
env->set_errfile(env, stderr); env->set_errfile(env, stderr);
CHK(env->open(env, ENVDIR, envflags|DB_RECOVER, S_IRWXU+S_IRWXG+S_IRWXO)); CHK(env->open(env, ENVDIR, envflags|DB_RECOVER, S_IRWXU+S_IRWXG+S_IRWXO));
CHK(env->close(env, 0));
} }
int int
......
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