Skip to content

Commit 2828e00

Browse files
author
Neha Kumari
committed
Merge branch 'mysql-5.5' into mysql-5.6
2 parents 3632b16 + 22eec68 commit 2828e00

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/mysqlbinlog.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,6 +1917,12 @@ static int parse_args(int *argc, char*** argv)
19171917
*/
19181918
static Exit_status safe_connect()
19191919
{
1920+
/*
1921+
A possible old connection's resources are reclaimed now
1922+
at new connect attempt. The final safe_connect resources
1923+
are mysql_closed at the end of program, explicitly.
1924+
*/
1925+
mysql_close(mysql);
19201926
mysql= mysql_init(NULL);
19211927

19221928
if (!mysql)

0 commit comments

Comments
 (0)