* [PATCH] test: tlv: fix memory leak
@ 2025-11-27 8:01 Sascha Hauer
2025-11-28 7:11 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2025-11-27 8:01 UTC (permalink / raw)
To: Barebox List
The unflattened device tree is never freed. Do so by calling
of_delete_node().
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
test/self/tlv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/self/tlv.c b/test/self/tlv.c
index c22335f264..8f1b810b5a 100644
--- a/test/self/tlv.c
+++ b/test/self/tlv.c
@@ -85,5 +85,7 @@ static void test_lxa_tlv(void)
tlv_free_device(cpu_tlvdev);
if (!IS_ERR(io_tlvdev))
tlv_free_device(io_tlvdev);
+
+ of_delete_node(expected);
}
bselftest(parser, test_lxa_tlv);
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-28 7:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-27 8:01 [PATCH] test: tlv: fix memory leak Sascha Hauer
2025-11-28 7:11 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox