Commit 70c37a9a authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

fix a memory leak closes[t:2490] #2490

git-svn-id: file:///svn/toku/tokudb@18882 c7de825b-a66e-492c-adef-691d508d4ae1
parent 13c324ed
...@@ -267,6 +267,7 @@ int toku_maybe_spill_rollbacks (TOKUTXN txn) { ...@@ -267,6 +267,7 @@ int toku_maybe_spill_rollbacks (TOKUTXN txn) {
txn->rollentry_filename = toku_xstrdup(filenamepart); txn->rollentry_filename = toku_xstrdup(filenamepart);
char *rollentry_filename_in_cwd = toku_construct_full_name(2, txn->logger->directory, filenamepart); char *rollentry_filename_in_cwd = toku_construct_full_name(2, txn->logger->directory, filenamepart);
txn->rollentry_fd = open(rollentry_filename_in_cwd, O_CREAT+O_RDWR+O_EXCL+O_BINARY, 0600); txn->rollentry_fd = open(rollentry_filename_in_cwd, O_CREAT+O_RDWR+O_EXCL+O_BINARY, 0600);
toku_free(rollentry_filename_in_cwd);
if (txn->rollentry_fd==-1) return errno; if (txn->rollentry_fd==-1) return errno;
} }
uLongf compressed_len = compressBound(w.ndone); uLongf compressed_len = compressBound(w.ndone);
......
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