Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
acdf833c
Commit
acdf833c
authored
Jul 18, 2008
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove memory leak. Fixes #1027.
git-svn-id:
file:///svn/tokudb@5194
c7de825b-a66e-492c-adef-691d508d4ae1
parent
10bdafb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Makefile
Makefile
+2
-2
newbrt/log.c
newbrt/log.c
+3
-1
No files found.
Makefile
View file @
acdf833c
default
:
build
TAGS
:
*/*.c */*.h
etags
*
/
*
.c
*
/
*
.h src/lock_tree/
*
.c src/lock_tree/
*
.h src/range_tree/
*
.c src/range_tree/
*
.h newbrt/tests/
*
.h
TAGS
:
*/*.c */*.h
*/*/*.c */*/*.h
etags
*
/
*
.c
*
/
*
.h src/
tests/
*
.c src/tests/
*
.h src/
lock_tree/
*
.c src/lock_tree/
*
.h src/range_tree/
*
.c src/range_tree/
*
.h newbrt/tests/
*
.h
SRCDIRS
=
newbrt src cxx utils db-benchmark-test db-benchmark-test-cxx
BUILDDIRS
=
$(SRCDIRS)
man/texi
...
...
newbrt/log.c
View file @
acdf833c
...
...
@@ -423,7 +423,7 @@ int toku_logger_commit (TOKUTXN txn, int nosync) {
int
len
=
strlen
(
txn
->
rollentry_filename
);
// Don't have to strdup the rollentry_filename because
// we take ownership of it.
BYTESTRING
fname
=
{
len
,
t
xn
->
rollentry_filename
};
BYTESTRING
fname
=
{
len
,
t
oku_strdup_in_rollback
(
txn
,
txn
->
rollentry_filename
)
};
r
=
toku_logger_save_rollback_rollinclude
(
txn
->
parent
,
fname
);
if
(
r
!=
0
)
{
cleanup_txn
(
txn
);
return
r
;
}
r
=
close
(
txn
->
rollentry_fd
);
...
...
@@ -432,11 +432,13 @@ int toku_logger_commit (TOKUTXN txn, int nosync) {
// set txn->rollentry_filename=0 so that the cleanup
// won't try to close the fd again.
unlink
(
txn
->
rollentry_filename
);
toku_free
(
txn
->
rollentry_filename
);
txn
->
rollentry_filename
=
0
;
cleanup_txn
(
txn
);
return
r
;
}
// Stop the cleanup from closing and unlinking the file.
toku_free
(
txn
->
rollentry_filename
);
txn
->
rollentry_filename
=
0
;
}
// Append the list to the front of the parent.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment