From 8beb43501be6bb4a4bd09e2b0aadc815dcc2f606 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 9 Dec 2000 14:28:51 -0700 Subject: fixed up leaks found by --exit-info=256 better error diagnostic in SLAVE START sql/mini_client.cc: if we fail to connect, we need to free the inited structure sql/mysqld.cc: added end_slave() for slave cleanup sql/slave.cc: fixed serveral memory leaks sql/slave.h: added end_master_info() for clean up sql/sql_class.cc: not changed sql/sql_repl.cc: initialize master info before creating slave thread in SLAVE START - this way we can easily send an error to the client if something is wrong in init_master_info --- sql/sql_class.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_class.cc') diff --git a/sql/sql_class.cc b/sql/sql_class.cc index b310d0f44bb..0587ad6f31c 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -139,7 +139,7 @@ THD::~THD() if (net.vio) { vio_delete(net.vio); - net_end(&net); + net_end(&net); } ha_rollback(this); if (locked_tables) -- cgit v1.2.1