Fix possible memory leak on error
authorTodd Short <todd.short@me.com>
Thu, 16 Feb 2023 15:56:29 +0000 (10:56 -0500)
committerTodd Short <todd.short@me.com>
Mon, 20 Feb 2023 14:34:56 +0000 (09:34 -0500)
commitc10ded8c2c862992c98b83909a679aa0bb448a55
treedf8ba534e090c5d56f654dd17671c04fd934251b
parentc400a1fe477b44a5eacbad2be8d50f2eaa92925c
Fix possible memory leak on error

The two places that call `ossl_ssl_init()` assume that no additional
memory has been allocated when this fails; they subsequently free
the QUIC_CONNECTION/SSL_CONNECTION via OPENSSL_free() without freeing
any other resources.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20316)
ssl/ssl_lib.c