Skip to content

Commit

Permalink
Fix regression on #461
Browse files Browse the repository at this point in the history
461 causes a severe memory corruption
  • Loading branch information
renecannao committed Jan 10, 2016
1 parent c01fd98 commit ec48ff7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mysql_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ MySQL_Connection::~MySQL_Connection() {
async_free_result();
if (send_quit) {
mysql_close_start(mysql);
} else {
mysql_close_no_command(mysql);
}
mysql_close_no_command(mysql);
mysql=NULL;
}
// // FIXME: with the use of mysql client library , this part should be gone.
Expand Down

0 comments on commit ec48ff7

Please sign in to comment.