mirror of
https://github.com/openssl/openssl.git
synced 2025-04-12 20:30:52 +08:00
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:
parent
3c957bcd54
commit
defd3ed820
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user