update: fixed leak and stuff

This commit is contained in:
maix0 2024-10-08 14:54:46 +02:00
parent 75581c7ee0
commit 8d796c4094
8 changed files with 39 additions and 26 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/06 13:32:28 by maiboyer #+# #+# */
/* Updated: 2024/10/07 16:47:20 by maiboyer ### ########.fr */
/* Updated: 2024/10/08 14:28:28 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -64,5 +64,7 @@ t_str token_name(t_token *token)
return ("DRPAREN");
if (token->type == TOK_CMD)
return ("CMD");
if (token->type == TOK_REDIR)
return ("REDIR");
return (NULL);
}