summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPeiwei Hu <jlu.hpw@foxmail.com>2021-12-15 14:53:53 +0800
committerTomas Mraz <tomas@openssl.org>2021-12-16 12:40:05 +0100
commitdd2fcc1f7c44c5fb5aa2d33aecdc699c7018ce01 (patch)
tree295062ec992b6ab9646e3315aa712b57d03d44e9 /crypto
parente8b597f33143410fb50bdeba8722c249524bc0b9 (diff)
EC_POINT_hex2point: forget to free pt
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17276)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ec/ec_print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ec_print.c b/crypto/ec/ec_print.c
index d791e15b48..ffe112052f 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))