Implemented some ast handlings...
ast lists, and_or, redirection and builtins
This commit is contained in:
parent
1fc54e2bf3
commit
bf992f2db4
10 changed files with 359 additions and 14 deletions
|
|
@ -29,7 +29,7 @@ void ast_free_list(struct ast_list *ast_list)
|
|||
if (ast_list == NULL)
|
||||
return;
|
||||
|
||||
list_deep_destroy(ast_list->children);
|
||||
ast_list_deep_destroy(ast_list->children);
|
||||
free(ast_list);
|
||||
}
|
||||
|
||||
|
|
@ -41,7 +41,8 @@ void ast_list_deep_destroy(struct list *l)
|
|||
{
|
||||
next_elt = elt->next;
|
||||
|
||||
ast_free(elt->data);
|
||||
struct ast *node = (struct ast *)elt->data;
|
||||
ast_free(&node);
|
||||
free(elt);
|
||||
elt = next_elt;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue