Property: fix memory leak.

Coverity 1456008.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/10509)
This commit is contained in:
Pauli 2019-11-24 18:15:15 +10:00
parent 3c957bcd54
commit defd3ed820

View File

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