[Skiboot] [PATCH 04/13] hdata_to_dt: free device tree on error path
Stewart Smith
stewart at linux.vnet.ibm.com
Wed Aug 23 17:21:14 AEST 2017
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
hdata/test/hdata_to_dt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c
index 511facd79734..155e41b63421 100644
--- a/hdata/test/hdata_to_dt.c
+++ b/hdata/test/hdata_to_dt.c
@@ -357,6 +357,7 @@ int main(int argc, char *argv[])
if(parse_hdat(false) < 0) {
fprintf(stderr, "FATAL ERROR parsing HDAT\n");
+ dt_free(dt_root);
exit(EXIT_FAILURE);
}
--
2.13.5
More information about the Skiboot
mailing list