Fix memory leak when handling SET autocommit

pull/2364/head
René Cannaò 7 years ago
parent 6aa550df05
commit d52a771e50

@ -840,6 +840,7 @@ bool MySQL_Session::handler_SetAutocommit(PtrSize_t *pkt) {
autocommit=true;
client_myds->myconn->set_autocommit(autocommit);
autocommit_on_hostgroup=FindOneActiveTransaction();
free(_new_pkt.ptr);
return false;
} else {
// as there is no active transaction, we do no need to forward it

Loading…
Cancel
Save