1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

mysqlbinlog memory leaks

that failed main.mysqlbinlog
This commit is contained in:
Sergei Golubchik
2017-01-27 14:26:09 +01:00
parent 30ba310057
commit 64b5e94236

View File

@@ -2877,9 +2877,6 @@ int main(int argc, char** argv)
DBUG_ENTER("main");
DBUG_PROCESS(argv[0]);
(void) my_init_dynamic_array(&binlog_events, sizeof(LEX_STRING), 1024, 1024,
MYF(0));
my_init_time(); // for time functions
tzset(); // set tzname
@@ -2917,6 +2914,10 @@ int main(int argc, char** argv)
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)
to_last_remote_log= TRUE;
@@ -3029,8 +3030,8 @@ int main(int argc, char** argv)
my_free(event_str->str);
}
fprintf(result_file, "COMMIT\n/*!*/;\n");
delete_dynamic(&binlog_events);
}
delete_dynamic(&binlog_events);
/* Set delimiter back to semicolon */
if (!stop_event_string.is_empty())