diff options
author | Bodo Möller <bodo@openssl.org> | 2000-11-03 15:40:10 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-11-03 15:40:10 +0000 |
commit | 02af65b347a47a11e8f90d4c52ce2f4dc30bb726 (patch) | |
tree | 1695ad54591b9ce83033650e16c54888be729a05 /crypto/dso/dso_lib.c | |
parent | 2f13ee21eae7ba289a80af2d7e4a04e21cc0f0d9 (diff) |
avoid memory leak
Diffstat (limited to 'crypto/dso/dso_lib.c')
-rw-r--r-- | crypto/dso/dso_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dso/dso_lib.c b/crypto/dso/dso_lib.c index 364ddbdb37..ef39a528c7 100644 --- a/crypto/dso/dso_lib.c +++ b/crypto/dso/dso_lib.c @@ -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); |