From defd3ed820e413d418e408c5a5ea92c889c83727 Mon Sep 17 00:00:00 2001 From: Pauli Date: Sun, 24 Nov 2019 18:15:15 +1000 Subject: Property: fix memory leak. Coverity 1456008. Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/10509) --- crypto/property/property.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/property') 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; -- cgit v1.2.3