This commit is contained in:
Maieul BOYER 2024-05-29 16:41:40 +02:00
parent d16b39091a
commit ff1670e264
No known key found for this signature in database
15 changed files with 435 additions and 243 deletions

View file

@ -6,13 +6,14 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/29 11:35:51 by rparodi #+# #+# */
/* Updated: 2024/05/19 14:51:28 by maiboyer ### ########.fr */
/* Updated: 2024/05/29 16:39:24 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#include "../includes/minishell.h"
#include "app/env.h"
#include "me/hashmap/hashmap_env.h"
#include "me/mem/mem.h"
void ts_parser_delete(t_first_parser *self);
@ -20,7 +21,7 @@ void ts_parser_delete(t_first_parser *self);
void ft_free(void *ptr)
{
if (!ptr)
free(ptr);
mem_free(ptr);
}
void ft_free_strs(t_str *strs)
@ -36,7 +37,7 @@ void ft_free_strs(t_str *strs)
void ft_free_utils(t_utils *s)
{
if (s->str_input)
free(s->str_input);
mem_free(s->str_input);
if (s->path)
ft_free_strs(s->path);
if (s->env)