[Skiboot] [PATCH 03/13] core/test/run-device: fix memory leak on exit

Stewart Smith stewart at linux.vnet.ibm.com
Wed Aug 23 17:21:13 AEST 2017


Shuts LeakSanitizer up

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 core/test/run-device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/test/run-device.c b/core/test/run-device.c
index 1a4cb1edeaf5..326be3ff2627 100644
--- a/core/test/run-device.c
+++ b/core/test/run-device.c
@@ -443,6 +443,7 @@ int main(void)
 	assert(!(new_prop_ph == ev1_ph));
 	new_prop_ph = dt_prop_get_u32(ut2, "something");
 	assert(!(new_prop_ph == ev1_ph));
+	dt_free(subtree);
 	return 0;
 }
 
-- 
2.13.5



More information about the Skiboot mailing list