Fixed a regression in mysql_mon.c which caused a memory leak
This commit is contained in:
parent
6f0e3937eb
commit
fe2062b5b0
@ -323,6 +323,8 @@ char *server_string;
|
||||
int read_timeout = mon->read_timeout;
|
||||
int write_timeout = mon->write_timeout;
|
||||
|
||||
if(database->con)
|
||||
mysql_close(database->con);
|
||||
database->con = mysql_init(NULL);
|
||||
|
||||
mysql_options(database->con, MYSQL_OPT_CONNECT_TIMEOUT, (void *)&connect_timeout);
|
||||
|
Loading…
x
Reference in New Issue
Block a user