]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add CRYPTO_FREE_REF to ossl_quic_free_token_store
authorNeil Horman <nhorman@openssl.org>
Wed, 13 Aug 2025 14:12:38 +0000 (10:12 -0400)
committerNeil Horman <nhorman@openssl.org>
Thu, 14 Aug 2025 15:19:52 +0000 (11:19 -0400)
commitd2a71ed94e82f96a589fbc017d525d415b427337
treef77712213a2bfd67f5d7e6261d1a2dd0fab9c66d
parentd582adc672bca4bc71a7766bb692558086efdd69
Add CRYPTO_FREE_REF to ossl_quic_free_token_store

ossl_quic_free_token_store doesn't call CRYPTO_FREE_REF on the
hdl->reference object, which could lead to memory leaks on platforms
that don't support atomics (where the call to CRYPTO_NEW_REF allocates a
mutex as part of its function.  It wasn't caught before because all the
platforms we do ci on support threads.

Fixes #28241

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28247)
ssl/quic/quic_impl.c