Commit 51506713 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

fix a rollback memory leak refs[t:2490]

git-svn-id: file:///svn/toku/tokudb@18894 c7de825b-a66e-492c-adef-691d508d4ae1
parent ab4cc9ce
...@@ -267,8 +267,9 @@ int toku_maybe_spill_rollbacks (TOKUTXN txn) { ...@@ -267,8 +267,9 @@ 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);
int r = errno;
toku_free(rollentry_filename_in_cwd); toku_free(rollentry_filename_in_cwd);
if (txn->rollentry_fd==-1) return errno; if (txn->rollentry_fd == -1) return r;
} }
uLongf compressed_len = compressBound(w.ndone); uLongf compressed_len = compressBound(w.ndone);
char *MALLOC_N(compressed_len, compressed_buf); char *MALLOC_N(compressed_len, compressed_buf);
......
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