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:
@@ -206,7 +206,6 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,
|
||||
if (ctx)
|
||||
BN_CTX_end(ctx);
|
||||
BN_CTX_free(ctx);
|
||||
if (buf)
|
||||
OPENSSL_free(buf);
|
||||
OPENSSL_free(buf);
|
||||
return (ret);
|
||||
}
|
||||
|
Reference in New Issue
Block a user