1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

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
This commit is contained in:
unknown
2000-12-09 14:28:51 -07:00
parent 701af10414
commit 8beb43501b
6 changed files with 67 additions and 16 deletions

View File

@@ -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)