summaryrefslogtreecommitdiffstats
path: root/src/s_destroy.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-10-26 13:42:56 +0100
committersalad <fmoenne-@student.le-101.fr>2020-10-26 13:42:56 +0100
commit0277ddfac754ab4ad5bdd2b692e31a717efbe569 (patch)
tree49d7c5fd3a12248af85e2c3a3254bc1538ae5775 /src/s_destroy.c
parentreqdy for MERGE (diff)
parentTODO update (diff)
download42-minishell-0277ddfac754ab4ad5bdd2b692e31a717efbe569.tar.gz
42-minishell-0277ddfac754ab4ad5bdd2b692e31a717efbe569.tar.bz2
42-minishell-0277ddfac754ab4ad5bdd2b692e31a717efbe569.tar.xz
42-minishell-0277ddfac754ab4ad5bdd2b692e31a717efbe569.tar.zst
42-minishell-0277ddfac754ab4ad5bdd2b692e31a717efbe569.zip
merge wif master
Diffstat (limited to 'src/s_destroy.c')
-rw-r--r--src/s_destroy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s_destroy.c b/src/s_destroy.c
index 97a47d8..54f3d4a 100644
--- a/src/s_destroy.c
+++ b/src/s_destroy.c
@@ -13,6 +13,7 @@
#include <libft.h>
#include "s_destroy.h"
+#include "s_lalias.h"
#include "s_lvars.h"
void
@@ -20,8 +21,8 @@ void
{
ft_memdel((void*)&msh->shname);
ft_memdel((void*)&msh->cwd);
- ft_delwords(msh->bu_ref);
ft_delwords(msh->envp);
lvars_clear(&msh->vars);
+ s_lalias_clear(&msh->alias);
ft_memdel((void*)&msh);
}