mirror of
https://github.com/openssl/openssl.git
synced 2025-01-24 13:55:42 +08:00
Fix a record layer mem leak
Make sure we free the record layer before we free the connection BIOs Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19198)
This commit is contained in:
parent
bafe524b5c
commit
9ff5195423
@ -1361,13 +1361,13 @@ void ossl_ssl_connection_free(SSL *ssl)
|
||||
/* Ignore return value */
|
||||
ssl_free_wbio_buffer(s);
|
||||
|
||||
RECORD_LAYER_clear(&s->rlayer);
|
||||
|
||||
BIO_free_all(s->wbio);
|
||||
s->wbio = NULL;
|
||||
BIO_free_all(s->rbio);
|
||||
s->rbio = NULL;
|
||||
|
||||
RECORD_LAYER_clear(&s->rlayer);
|
||||
|
||||
BUF_MEM_free(s->init_buf);
|
||||
|
||||
/* add extra stuff */
|
||||
|
Loading…
Reference in New Issue
Block a user