summaryrefslogtreecommitdiffstats
path: root/crypto/property
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2020-07-06 14:08:58 +1000
committerDmitry Belyavskiy <beldmit@gmail.com>2020-07-08 11:19:08 +0300
commit84ba665d72906c36b158071035896f50a9aad808 (patch)
tree48450237afc5b11f6430af3b4d8230c86c0c9a58 /crypto/property
parent2f1d0b35c12f50e971ef626ff9bbf35a53f9a66d (diff)
Fix CID #1465216 Resource leak in property_fetch
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/12379)
Diffstat (limited to 'crypto/property')
-rw-r--r--crypto/property/property.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/property/property.c b/crypto/property/property.c
index a3b52ee44d..645e361b0a 100644
--- a/crypto/property/property.c
+++ b/crypto/property/property.c
@@ -358,9 +358,9 @@ int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid,
pq = *plp;
} else {
p2 = ossl_property_merge(pq, *plp);
+ ossl_property_free(pq);
if (p2 == NULL)
goto fin;
- ossl_property_free(pq);
pq = p2;
}
}