Skip to content

Commit c268259

Browse files
committed
Fixed memory leak of client received packet when SSL connection is initiated #3620
1 parent 36abd62 commit c268259

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/MySQL_Session.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4840,6 +4840,7 @@ void MySQL_Session::handler___status_CONNECTING_CLIENT___STATE_SERVER_HANDSHAKE(
48404840
SSL_set_fd(client_myds->ssl, client_myds->fd);
48414841
SSL_set_accept_state(client_myds->ssl);
48424842
SSL_set_bio(client_myds->ssl, client_myds->rbio_ssl, client_myds->wbio_ssl);
4843+
l_free(pkt->size,pkt->ptr);
48434844
return;
48444845
}
48454846

0 commit comments

Comments
 (0)