From: Peiwei Hu Date: Wed, 15 Dec 2021 06:53:53 +0000 (+0800) Subject: EC_POINT_hex2point: forget to free pt X-Git-Tag: openssl-3.2.0-alpha1~3189 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd2fcc1f7c44c5fb5aa2d33aecdc699c7018ce01;p=thirdparty%2Fopenssl.git EC_POINT_hex2point: forget to free pt Reviewed-by: Paul Dale Reviewed-by: Nicola Tuveri Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17276) --- diff --git a/crypto/ec/ec_print.c b/crypto/ec/ec_print.c index d791e15b483..ffe112052fb 100644 --- a/crypto/ec/ec_print.c +++ b/crypto/ec/ec_print.c @@ -68,7 +68,7 @@ EC_POINT *EC_POINT_hex2point(const EC_GROUP *group, len = strlen(hex) / 2; oct_buf = OPENSSL_malloc(len); if (oct_buf == NULL) - return NULL; + goto err; if (!OPENSSL_hexstr2buf_ex(oct_buf, len, &oct_buf_len, hex, '\0') || !EC_POINT_oct2point(group, pt, oct_buf, oct_buf_len, ctx))