summaryrefslogtreecommitdiffstats
path: root/src/ft_s_destroy.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-05-11 15:52:11 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-05-11 15:52:11 +0200
commit4cdd3e31e7181a10e83e993f92e8d6606e978a2d (patch)
tree2ea42522239dcbb210941635ccc1a23e788e6244 /src/ft_s_destroy.c
parentUFS reinstall, will finish pipes later (diff)
download42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.gz
42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.bz2
42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.xz
42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.tar.zst
42-minishell-4cdd3e31e7181a10e83e993f92e8d6606e978a2d.zip
New files
Diffstat (limited to '')
-rw-r--r--src/ft_s_destroy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_s_destroy.c b/src/ft_s_destroy.c
index 08980b5..22009c8 100644
--- a/src/ft_s_destroy.c
+++ b/src/ft_s_destroy.c
@@ -22,6 +22,7 @@ void
ft_memdel((void*)&msh->cwd);
ft_memdel((void*)&msh->shname);
ft_delwords(msh->bu_ref);
+ ft_delwords(msh->envp);
ft_lvars_clear(&msh->vars);
ft_memdel((void*)&msh);
}