fix(parser): small typos
This commit is contained in:
parent
efb0a6f148
commit
967a78e1a4
1 changed files with 2 additions and 2 deletions
|
|
@ -172,7 +172,7 @@ struct ast *parse_command(struct lexer_context *ctx)
|
|||
/* @brief: frees command_elements and redirections lists
|
||||
* @return: NULL
|
||||
*/
|
||||
static err_simple_command(struct list *command_elements,
|
||||
static void *err_simple_command(struct list *command_elements,
|
||||
struct list *redirections)
|
||||
{
|
||||
list_deep_destroy(command_elements);
|
||||
|
|
@ -238,7 +238,7 @@ struct ast *parse_simple_command(struct lexer_context *ctx)
|
|||
|
||||
// TODO test this fix for the memory leaks
|
||||
char *word = strdup(element_word->word);
|
||||
ast_free(element_word);
|
||||
ast_free(&element);
|
||||
command_elements = list_append(command_elements, word);
|
||||
// end of fix
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue