Fix a possible memory leak of ssl->s3.tmp.psk

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22637)
This commit is contained in:
Bernd Edlinger 2023-11-06 10:44:27 +01:00
parent 7fe3010471
commit a2b1ab6100

View File

@ -3371,6 +3371,10 @@ void ssl3_free(SSL *s)
OPENSSL_free(sc->s3.alpn_selected);
OPENSSL_free(sc->s3.alpn_proposed);
#ifndef OPENSSL_NO_PSK
OPENSSL_free(sc->s3.tmp.psk);
#endif
#ifndef OPENSSL_NO_SRP
ssl_srp_ctx_free_intern(sc);
#endif