]> 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:40:49 +0000 (16:40 +0200)
commit431937cf1af31107e70c0af2aa805267950d7404
treef68fe9ecceb09871d945a105e746229c3fa33f01
parent410bf24daee01df8f71246ba32d8e2a2922a8f25
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)

(cherry picked from commit 00c531a5e327320f0ec78ce4b153fac65ebca229)
crypto/property/property.c