23 lines
1.1 KiB
C
23 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* free_minishell.c :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/02/05 16:03:57 by whaffman #+# #+# */
|
|
/* Updated: 2025/02/05 16:04:18 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "minishell.h"
|
|
|
|
void free_minishell(t_minishell *minishell)
|
|
{
|
|
if (minishell->line)
|
|
free_minishell_line(minishell);
|
|
if (minishell->enviroment)
|
|
free_enviroment(minishell->enviroment);
|
|
free(minishell);
|
|
}
|