From: Pauli Date: Sun, 24 Nov 2019 08:15:15 +0000 (+1000) Subject: Property: fix memory leak. X-Git-Tag: openssl-3.0.0-alpha1~907 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=defd3ed820e413d418e408c5a5ea92c889c83727;p=oweals%2Fopenssl.git Property: fix memory leak. Coverity 1456008. Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/10509) --- diff --git a/crypto/property/property.c b/crypto/property/property.c index 33e7469351..0e31b8fa81 100644 --- a/crypto/property/property.c +++ b/crypto/property/property.c @@ -546,9 +546,9 @@ int ossl_method_store_cache_set(OSSL_METHOD_STORE *store, int nid, } ossl_method_free(&p->method); } - OPENSSL_free(p); err: res = 0; + OPENSSL_free(p); end: ossl_property_unlock(store); return res;