public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 1/2] unit: fix memory leak in test-dpp
@ 2024-02-27 19:35 James Prestwood
  2024-02-27 19:35 ` [PATCH 2/2] crypto: fix uninitialized variable coverity warning James Prestwood
  2024-02-27 20:34 ` [PATCH 1/2] unit: fix memory leak in test-dpp Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: James Prestwood @ 2024-02-27 19:35 UTC (permalink / raw)
  To: iwd; +Cc: James Prestwood

---
 unit/test-dpp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/unit/test-dpp.c b/unit/test-dpp.c
index 781d494a..0a4fd01f 100644
--- a/unit/test-dpp.c
+++ b/unit/test-dpp.c
@@ -331,8 +331,10 @@ static void test_key_derivation(const void *data)
 
 	if (vector->i_asn1) {
 		HEX2BUF(vector->i_asn1, tmp, sizeof(tmp));
+		l_free(asn1);
 		asn1 = dpp_point_to_asn1(i_boot_public, &asn1_len);
 
+		l_free(from_asn1);
 		from_asn1 = dpp_point_from_asn1(asn1, asn1_len);
 
 		assert(l_ecc_points_are_equal(from_asn1, i_boot_public));
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-27 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-27 19:35 [PATCH 1/2] unit: fix memory leak in test-dpp James Prestwood
2024-02-27 19:35 ` [PATCH 2/2] crypto: fix uninitialized variable coverity warning James Prestwood
2024-02-27 20:34 ` [PATCH 1/2] unit: fix memory leak in test-dpp Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox