Skip to content

Commit 90aec3d

Browse files
author
Neha Kumari
committed
Merge branch 'mysql-5.6' into mysql-5.7
2 parents 672b8d6 + 2828e00 commit 90aec3d

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
@@ -2257,6 +2257,12 @@ static int parse_args(int *argc, char*** argv)
22572257
*/
22582258
static Exit_status safe_connect()
22592259
{
2260+
/*
2261+
A possible old connection's resources are reclaimed now
2262+
at new connect attempt. The final safe_connect resources
2263+
are mysql_closed at the end of program, explicitly.
2264+
*/
2265+
mysql_close(mysql);
22602266
mysql= mysql_init(NULL);
22612267

22622268
if (!mysql)

0 commit comments

Comments
 (0)