Check for NULL where tree can be NULL.

This commit is contained in:
Danila Fedorin 2018-03-18 23:42:49 -07:00
parent 94f1a11f15
commit b6ab42f53a

View File

@ -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;
}