mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
avoid memory leak
This commit is contained in:
parent
2f13ee21ea
commit
02af65b347
@ -108,7 +108,7 @@ DSO *DSO_new_method(DSO_METHOD *meth)
|
||||
}
|
||||
memset(ret, 0, sizeof(DSO));
|
||||
ret->meth_data = sk_new_null();
|
||||
if((ret->meth_data = sk_new_null()) == NULL)
|
||||
if(ret->meth_data == NULL)
|
||||
{
|
||||
/* sk_new doesn't generate any errors so we do */
|
||||
DSOerr(DSO_F_DSO_NEW_METHOD,ERR_R_MALLOC_FAILURE);
|
||||
|
Loading…
Reference in New Issue
Block a user