Fix CID #1465216 Resource leak in property_fetch

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12379)
This commit is contained in:
Shane Lontis 2020-07-06 14:08:58 +10:00 committed by Dmitry Belyavskiy
parent 2f1d0b35c1
commit 84ba665d72

View File

@ -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;
}
}