From b658662ae4da6a9cfc83ed52d1cb9b84fcfa98ae Mon Sep 17 00:00:00 2001 From: "monty@hundin.mysql.fi" <> Date: Thu, 6 Dec 2001 14:10:51 +0200 Subject: Update copyright Fixed memory leak on shutdown (Affects the embedded version & MyODBC) --- sql/repl_failsafe.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'sql/repl_failsafe.cc') diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc index d846662947d..6b15bd92ac6 100644 --- a/sql/repl_failsafe.cc +++ b/sql/repl_failsafe.cc @@ -256,7 +256,7 @@ int translate_master(THD* thd, LEX_MASTER_INFO* mi, char* errmsg) } linfo.index_file_offset = 0; - + search_file_name[0] = 0; @@ -364,7 +364,7 @@ static Slave_log_event* find_slave_event(IO_CACHE* log, int i; bool slave_event_found = 0; LINT_INIT(ev); - + for (i = 0; i < 2; i++) { if (!(ev = Log_event::read_log_event(log, (pthread_mutex_t*)0, 0))) @@ -436,7 +436,7 @@ int update_slave_list(MYSQL* mysql) const char* error=0; bool have_auth_info; int port_ind; - + if (mc_mysql_query(mysql,"SHOW SLAVE HOSTS",0) || !(res = mc_mysql_store_result(mysql))) { @@ -504,7 +504,7 @@ err: int find_recovery_captain(THD* thd, MYSQL* mysql) { - + return 0; } @@ -826,7 +826,3 @@ err: return error; } - - - - -- cgit v1.2.1