From 9d3c08e633b70fbc236cc8e197732ba32f9fc5cb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 10 Nov 2014 20:43:43 +0100 Subject: memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/mds-kbdc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mds-kbdc/mds-kbdc.c') 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: -- cgit v1.2.3-70-g09d2