From: Jouni Malinen Date: Mon, 22 Jan 2024 16:25:55 +0000 (+0200) Subject: tests: Fix a memory leak in a module test X-Git-Tag: hostap_2_11~437 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1790027895955cc9a2a7e5b4887ae332162ed3a;p=thirdparty%2Fhostap.git tests: Fix a memory leak in a module test Signed-off-by: Jouni Malinen --- diff --git a/src/crypto/crypto_module_tests.c b/src/crypto/crypto_module_tests.c index 4147f414e..ffeddbadd 100644 --- a/src/crypto/crypto_module_tests.c +++ b/src/crypto/crypto_module_tests.c @@ -2446,6 +2446,7 @@ fail: wpabuf_free(res_pt); wpabuf_free(res_ct); crypto_ec_key_deinit(own_priv); + crypto_ec_key_deinit(peer_pub); return res; }