From b6ab42f53a83cd219a7380035130e885f14c907c Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 18 Mar 2018 23:42:49 -0700 Subject: [PATCH] Check for NULL where tree can be NULL. --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.c b/src/parser.c index e3f844c..5d20f87 100644 --- a/src/parser.c +++ b/src/parser.c @@ -652,7 +652,7 @@ libab_result _parse_call(struct parser_state* state, libab_tree** store_into) { } if(result != LIBAB_SUCCESS) { - libab_tree_free_recursive(*store_into); + if(*store_into) libab_tree_free_recursive(*store_into); *store_into = NULL; }