X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Fec%2Fec_mult.c;h=243b5392e01e0052b421566a3a9a5a8f37e8f5c7;hb=8fdc3734c063146b038608c2412a0f2c9b21b6d6;hp=16b37db671c8d46cd1c8473b93081df6487d17cb;hpb=17dd65e6e1f888b4561d559b4d44fbbe0a0aa3e7;p=openssl.git diff --git a/crypto/ec/ec_mult.c b/crypto/ec/ec_mult.c index 16b37db671..243b5392e0 100644 --- a/crypto/ec/ec_mult.c +++ b/crypto/ec/ec_mult.c @@ -556,8 +556,7 @@ int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, err: if (new_ctx != NULL) BN_CTX_free(new_ctx); - if (tmp != NULL) - EC_POINT_free(tmp); + EC_POINT_free(tmp); if (wsize != NULL) OPENSSL_free(wsize); if (wNAF_len != NULL) @@ -759,10 +758,8 @@ int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx) EC_POINT_free(*p); OPENSSL_free(points); } - if (tmp_point) - EC_POINT_free(tmp_point); - if (base) - EC_POINT_free(base); + EC_POINT_free(tmp_point); + EC_POINT_free(base); return ret; }