]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix a memory leak in a module test
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 22 Jan 2024 16:25:55 +0000 (18:25 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 22 Jan 2024 19:16:47 +0000 (21:16 +0200)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/crypto/crypto_module_tests.c

index 4147f414e5a953724d324822d467481226dc8d9b..ffeddbaddfacf103f8a084ea00ddbd6120845635 100644 (file)
@@ -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;
 }