提交 9ff51954 编写于 作者: M Matt Caswell

Fix a record layer mem leak

Make sure we free the record layer before we free the connection BIOs
Reviewed-by: NHugo Landau <hlandau@openssl.org>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19198)
上级 bafe524b
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册