diff --git a/crypto/ec/ec_elgamal_crypt.c b/crypto/ec/ec_elgamal_crypt.c index a237ee496..76f247562 100644 --- a/crypto/ec/ec_elgamal_crypt.c +++ b/crypto/ec/ec_elgamal_crypt.c @@ -98,13 +98,13 @@ EC_ELGAMAL_CTX *EC_ELGAMAL_CTX_new(EC_KEY *key, const EC_POINT *h, int32_t flag) ctx->flag = flag; return ctx; -#ifndef OPENSSL_NO_TWISTED_EC_ELGAMAL err: +#ifndef OPENSSL_NO_TWISTED_EC_ELGAMAL OPENSSL_free(buf); BN_CTX_free(bn_ctx); +#endif EC_ELGAMAL_CTX_free(ctx); return NULL; -#endif } EC_ELGAMAL_CTX *EC_ELGAMAL_CTX_dup(EC_ELGAMAL_CTX *ctx)