From 4f2cf55360921292716e68a44a4111126e1849b4 Mon Sep 17 00:00:00 2001 From: Zhiqi Song Date: Sat, 17 Jun 2023 20:31:29 +0800 Subject: [PATCH 17/48] ecc: fixup free source method inconsistent EC_POINT_point2buf() use OPENSSL_malloc() to allocate memory for 'point_bin', we should use OPENSSL_free() to release it, rather than free(). Signed-off-by: Zhiqi Song --- src/uadk_pkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uadk_pkey.c b/src/uadk_pkey.c index b24c196..35a2696 100644 --- a/src/uadk_pkey.c +++ b/src/uadk_pkey.c @@ -375,7 +375,7 @@ int uadk_ecc_set_public_key(handle_t sess, const EC_KEY *eckey) ret = UADK_DO_SOFT; } - free(point_bin); + OPENSSL_free(point_bin); return ret; } -- 2.25.1