]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/property/property.c: Free impl->method to avoid memory leak
authorJiashengJiang <jiasheng@purdue.edu>
Fri, 16 May 2025 18:21:07 +0000 (14:21 -0400)
committerTomas Mraz <tomas@openssl.org>
Thu, 29 May 2025 14:39:51 +0000 (16:39 +0200)
commit00c531a5e327320f0ec78ce4b153fac65ebca229
tree5bd53ae3cf69142e705b4516f762d8d43b1150ff
parent3161f460fa7eacc7a93f8edf413c78b4dcf65823
crypto/property/property.c: Free impl->method to avoid memory leak

After ossl_method_up_ref() succeeds, impl_free() should be called to free impl->method.

Fixes: 860ecfd ("property: check return values from the property locking
calls.")
Signed-off-by: JiashengJiang <jiasheng@purdue.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27564)
crypto/property/property.c