diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-30 17:27:33 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-30 17:27:33 +0200 |
commit | 25f16106a8f4e9be81d5f415783a0675580605bc (patch) | |
tree | bb3c96fda7d97c5d6a8fa056515756dd26d301a7 /src/ft_s_destroy.c | |
parent | yessaye (diff) | |
parent | BSD magick test (diff) | |
download | 42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.tar.gz 42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.tar.bz2 42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.tar.xz 42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.tar.zst 42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.zip |
Merge branch 'vars'
Diffstat (limited to 'src/ft_s_destroy.c')
-rw-r--r-- | src/ft_s_destroy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ft_s_destroy.c b/src/ft_s_destroy.c index f339e8d..08980b5 100644 --- a/src/ft_s_destroy.c +++ b/src/ft_s_destroy.c @@ -11,7 +11,9 @@ /* ************************************************************************** */ #include <libft.h> + #include "ft_s_destroy.h" +#include "ft_s_lvars.h" void ft_s_destroy(t_msh *msh) @@ -20,5 +22,6 @@ void ft_memdel((void*)&msh->cwd); ft_memdel((void*)&msh->shname); ft_delwords(msh->bu_ref); + ft_lvars_clear(&msh->vars); ft_memdel((void*)&msh); } |