free NULL cleanup.
This gets EC_GROUP_clear_free EC_GROUP_free, EC_KEY_free, EC_POINT_clear_free, EC_POINT_free Reviewed-by: Kurt Roeckx <kurt@openssl.org>
This commit is contained in:
@@ -437,10 +437,8 @@ int ec_GF2m_simple_mul(const EC_GROUP *group, EC_POINT *r,
|
||||
ret = 1;
|
||||
|
||||
err:
|
||||
if (p)
|
||||
EC_POINT_free(p);
|
||||
if (acc)
|
||||
EC_POINT_free(acc);
|
||||
EC_POINT_free(p);
|
||||
EC_POINT_free(acc);
|
||||
if (new_ctx != NULL)
|
||||
BN_CTX_free(new_ctx);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user