aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/mds-kbdc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-kbdc/mds-kbdc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mds-kbdc/mds-kbdc.c b/src/mds-kbdc/mds-kbdc.c
index d7427d2..fccd1df 100644
--- a/src/mds-kbdc/mds-kbdc.c
+++ b/src/mds-kbdc/mds-kbdc.c
@@ -57,9 +57,10 @@ int main(int argc_, char** argv_)
}
mds_kbdc_parse_error_free_all(parse_errors);
if (fatal)
- return 1;
+ return mds_kbdc_tree_free(tree), 1;
}
+ mds_kbdc_tree_free(tree);
return 0;
pfail: