summaryrefslogtreecommitdiffstats
path: root/src/s_destroy.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-16 21:09:14 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-16 21:09:14 +0200
commitc8ba75c31c949d3b5e5ba44e389550ea10096c5d (patch)
tree3fd61cd13f2ba9452c49cc9b48449c2458580454 /src/s_destroy.c
parentTodo update (diff)
download42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.tar.gz
42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.tar.bz2
42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.tar.xz
42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.tar.zst
42-minishell-c8ba75c31c949d3b5e5ba44e389550ea10096c5d.zip
Leak fix
Diffstat (limited to '')
-rw-r--r--src/s_destroy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/s_destroy.c b/src/s_destroy.c
index 54f3d4a..3e7eb21 100644
--- a/src/s_destroy.c
+++ b/src/s_destroy.c
@@ -19,6 +19,7 @@
void
s_destroy(t_msh *msh)
{
+ ft_memdel((void*)&msh->prev_hist);
ft_memdel((void*)&msh->shname);
ft_memdel((void*)&msh->cwd);
ft_delwords(msh->envp);