aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-08-23 11:16:54 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-24 12:59:15 +1000
commit4a7a1ea88b0c345c2ed058aa8f29be862daacbdd (patch)
treebc8e4efb1b2e7c876c8d0665738763d34e4528f9 /hdata
parent9b9816154629ef27236eca5f1f5dd5dfe31df524 (diff)
downloadskiboot-4a7a1ea88b0c345c2ed058aa8f29be862daacbdd.zip
skiboot-4a7a1ea88b0c345c2ed058aa8f29be862daacbdd.tar.gz
skiboot-4a7a1ea88b0c345c2ed058aa8f29be862daacbdd.tar.bz2
hdata_to_dt: free device tree on error path
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/test/hdata_to_dt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c
index 511facd..155e41b 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);
}