Skip to content

Commit ec48ff7

Browse files
committed
Fix regression on #461
461 causes a severe memory corruption
1 parent c01fd98 commit ec48ff7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mysql_connection.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ MySQL_Connection::~MySQL_Connection() {
172172
async_free_result();
173173
if (send_quit) {
174174
mysql_close_start(mysql);
175+
} else {
176+
mysql_close_no_command(mysql);
175177
}
176-
mysql_close_no_command(mysql);
177178
mysql=NULL;
178179
}
179180
// // FIXME: with the use of mysql client library , this part should be gone.

0 commit comments

Comments
 (0)