free null cleanup finale
Don't check for NULL before calling OPENSSL_free Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
@@ -320,9 +320,7 @@ static int test_EVP_DigestSignInit(void)
|
||||
EVP_MD_CTX_cleanup(&md_ctx);
|
||||
EVP_MD_CTX_cleanup(&md_ctx_verify);
|
||||
EVP_PKEY_free(pkey);
|
||||
if (sig) {
|
||||
OPENSSL_free(sig);
|
||||
}
|
||||
OPENSSL_free(sig);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user