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))