correction, merci wescande
This commit is contained in:
parent
3bf8abe178
commit
26e20534cf
3 changed files with 4 additions and 24 deletions
|
|
@ -264,7 +264,6 @@ line-editing/print_and_del.c\
|
|||
line-editing/queue.c\
|
||||
line-editing/readline.c\
|
||||
line-editing/resize.c\
|
||||
main/content_free.c\
|
||||
main/data_exit.c\
|
||||
main/data_init.c\
|
||||
main/data_singleton.c\
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* content_free.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/03/15 16:05:27 by gwojda #+# #+# */
|
||||
/* Updated: 2017/03/15 16:35:18 by gwojda ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
|
||||
void content_free(void *data, size_t content_size)
|
||||
{
|
||||
(void)content_size;
|
||||
free(data);
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/03/15 15:54:59 by gwojda #+# #+# */
|
||||
/* Updated: 2017/03/15 16:36:14 by gwojda ### ########.fr */
|
||||
/* Updated: 2017/03/15 16:49:10 by gwojda ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -16,10 +16,10 @@ int instruction_free(t_list **token, t_parser *parser, t_btree **ast)
|
|||
{
|
||||
ft_lstdel(token, &token_free);
|
||||
token = NULL;
|
||||
ft_lstdel(&parser->stack, &content_free);
|
||||
btree_del(ast, &content_free);
|
||||
ft_lstdel(&parser->stack, &ft_lst_cfree);
|
||||
btree_del(ast, &ft_lst_cfree);
|
||||
ft_lstdel(&data_singleton()->heredoc_queue, &redir_free);
|
||||
ft_lstdel(&data_singleton()->exec.op_stack, &content_free);
|
||||
ft_lstdel(&data_singleton()->exec.op_stack, &ft_lst_cfree);
|
||||
free(parser->new_sym);
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue