Add missing EC_KEY_free()
authortb <tb@openbsd.org>
Fri, 10 May 2024 05:12:03 +0000 (05:12 +0000)
committertb <tb@openbsd.org>
Fri, 10 May 2024 05:12:03 +0000 (05:12 +0000)
commit7a916089ef1d0ebd5efa2adab5c1d1c539bddc77
treefb0cc9d1f1bb00f44144e5aa5500644503878c11
parentcfaab7d7eb356a4f8991d066e42de3a749552392
Add missing EC_KEY_free()

While eckey_from_explicit_params() frees *out_eckey, eckey_from_object()
and eckey_from_params() do not. These functions are currently all callled
with a NULL *out_eckey, but the latter two would leak if that should ever
change.

ok jsing
lib/libcrypto/ec/ec_ameth.c