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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
77c6f461
Commit
77c6f461
authored
Apr 16, 2013
by
Dave Wells
Committed by
Yoni Fogel
Apr 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plug memory leak [t:2426]
git-svn-id:
file:///svn/toku/tokudb@18330
c7de825b-a66e-492c-adef-691d508d4ae1
parent
336260de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
newbrt/logcursor.c
newbrt/logcursor.c
+4
-4
No files found.
newbrt/logcursor.c
View file @
77c6f461
...
...
@@ -463,11 +463,11 @@ static int lc_fix_bad_logfile(TOKULOGCURSOR lc) {
off_t
last_good_pos
;
last_good_pos
=
ftello
(
lc
->
cur_fp
);
while
(
1
)
{
if
(
lc
->
entry_valid
)
{
toku_log_free_log_entry_resources
(
&
le
);
lc
->
entry_valid
=
FALSE
;
}
// initialize le
// - reading incomplete entries can result in fields that cannot be freed
memset
(
&
le
,
0
,
sizeof
(
le
));
r
=
toku_log_fread
(
lc
->
cur_fp
,
&
le
);
toku_log_free_log_entry_resources
(
&
le
);
if
(
r
!=
0
)
break
;
last_good_pos
=
ftello
(
lc
->
cur_fp
);
}
...
...
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