1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

fixed up leaks found by --exit-info=256

better error diagnostic in SLAVE START
This commit is contained in:
sasha@mysql.sashanet.com
2000-12-09 14:28:51 -07:00
parent b36c387f4f
commit 3cf810222a
6 changed files with 67 additions and 16 deletions

View File

@ -386,7 +386,10 @@ my_bool STDCALL mc_mysql_reconnect(MYSQL *mysql)
if (!mc_mysql_connect(&tmp_mysql,mysql->host,mysql->user,mysql->passwd,
mysql->db, mysql->port, mysql->unix_socket,
mysql->client_flag))
DBUG_RETURN(1);
{
mc_mysql_close(&tmp_mysql);
DBUG_RETURN(1);
}
tmp_mysql.free_me=mysql->free_me;
mysql->free_me=0;
bzero((char*) &mysql->options,sizeof(&mysql->options));