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
64b5e942
Commit
64b5e942
authored
Jan 27, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysqlbinlog memory leaks
that failed main.mysqlbinlog
parent
30ba3100
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+5
-4
No files found.
client/mysqlbinlog.cc
View file @
64b5e942
...
@@ -2877,9 +2877,6 @@ int main(int argc, char** argv)
...
@@ -2877,9 +2877,6 @@ int main(int argc, char** argv)
DBUG_ENTER
(
"main"
);
DBUG_ENTER
(
"main"
);
DBUG_PROCESS
(
argv
[
0
]);
DBUG_PROCESS
(
argv
[
0
]);
(
void
)
my_init_dynamic_array
(
&
binlog_events
,
sizeof
(
LEX_STRING
),
1024
,
1024
,
MYF
(
0
));
my_init_time
();
// for time functions
my_init_time
();
// for time functions
tzset
();
// set tzname
tzset
();
// set tzname
...
@@ -2917,6 +2914,10 @@ int main(int argc, char** argv)
...
@@ -2917,6 +2914,10 @@ int main(int argc, char** argv)
my_set_max_open_files
(
open_files_limit
);
my_set_max_open_files
(
open_files_limit
);
if
(
opt_flashback
)
my_init_dynamic_array
(
&
binlog_events
,
sizeof
(
LEX_STRING
),
1024
,
1024
,
MYF
(
0
));
if
(
opt_stop_never
)
if
(
opt_stop_never
)
to_last_remote_log
=
TRUE
;
to_last_remote_log
=
TRUE
;
...
@@ -3029,8 +3030,8 @@ int main(int argc, char** argv)
...
@@ -3029,8 +3030,8 @@ int main(int argc, char** argv)
my_free
(
event_str
->
str
);
my_free
(
event_str
->
str
);
}
}
fprintf
(
result_file
,
"COMMIT
\n
/*!*/;
\n
"
);
fprintf
(
result_file
,
"COMMIT
\n
/*!*/;
\n
"
);
}
delete_dynamic
(
&
binlog_events
);
delete_dynamic
(
&
binlog_events
);
}
/* Set delimiter back to semicolon */
/* Set delimiter back to semicolon */
if
(
!
stop_event_string
.
is_empty
())
if
(
!
stop_event_string
.
is_empty
())
...
...
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