fix(main): return code because of ast_free
This commit is contained in:
parent
306b13308b
commit
627c3057e9
1 changed files with 2 additions and 2 deletions
|
|
@ -92,10 +92,10 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
hash_map_free(&vars);
|
hash_map_free(&vars);
|
||||||
|
|
||||||
ast_free(&command_ast);
|
|
||||||
|
|
||||||
if (command_ast == NULL)
|
if (command_ast == NULL)
|
||||||
return ERR_INPUT_PROCESSING;
|
return ERR_INPUT_PROCESSING;
|
||||||
|
|
||||||
|
ast_free(&command_ast);
|
||||||
|
|
||||||
return return_code;
|
return return_code;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue