Skip to content

Commit

Permalink
Merge pull request #3621 from sysown/v2.x-3620
Browse files Browse the repository at this point in the history
Fixes memory leaks detected during testing - Closes #3620
  • Loading branch information
JavierJF authored Sep 14, 2021
2 parents db9b4ad + c268259 commit b4c7b93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/MySQL_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4841,6 +4841,7 @@ void MySQL_Session::handler___status_CONNECTING_CLIENT___STATE_SERVER_HANDSHAKE(
SSL_set_fd(client_myds->ssl, client_myds->fd);
SSL_set_accept_state(client_myds->ssl);
SSL_set_bio(client_myds->ssl, client_myds->rbio_ssl, client_myds->wbio_ssl);
l_free(pkt->size,pkt->ptr);
return;
}

Expand Down Expand Up @@ -5102,6 +5103,9 @@ void MySQL_Session::handler___status_CONNECTING_CLIENT___STATE_SERVER_HANDSHAKE(
free(_s);
__sync_fetch_and_add(&MyHGM->status.access_denied_wrong_password, 1);
}
if (client_addr) {
free(client_addr);
}
GloMyLogger->log_audit_entry(PROXYSQL_MYSQL_AUTH_ERR, this, NULL);
__sync_add_and_fetch(&MyHGM->status.client_connections_aborted,1);
client_myds->DSS=STATE_SLEEP;
Expand Down

0 comments on commit b4c7b93

Please sign in to comment.