- add freelist to minishell - add t_minishell *minishell to all function calling malloc_free - substituted all malloc calls but the first to malloc_safe
19 lines
1.0 KiB
C
19 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* environment_free_list.c :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/02/04 16:13:59 by whaffman #+# #+# */
|
|
/* Updated: 2025/02/25 13:37:21 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "minishell.h"
|
|
|
|
void environment_free_list(t_minishell *minishell)
|
|
{
|
|
ft_lstclear(&(minishell->environment), environment_free);
|
|
}
|