summaryrefslogtreecommitdiffstats
path: root/src/ft_s_destroy.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 18:46:17 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 18:46:17 +0200
commit3349e8a37a9fdf78b82d6df1d310e39c78fcebb2 (patch)
tree88ec7499dbdd45293ae63b5b353c849e50c166e8 /src/ft_s_destroy.c
parentCool funptr (diff)
download42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.gz
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.bz2
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.xz
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.tar.zst
42-minishell-3349e8a37a9fdf78b82d6df1d310e39c78fcebb2.zip
Trying linked lists
Diffstat (limited to '')
-rw-r--r--src/ft_s_destroy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_s_destroy.c b/src/ft_s_destroy.c
index 8c82297..02336d3 100644
--- a/src/ft_s_destroy.c
+++ b/src/ft_s_destroy.c
@@ -14,9 +14,9 @@
#include "ft_s_destroy.h"
void
-ft_s_destroy(t_msh *msh)
+ ft_s_destroy(t_msh *msh)
{
ft_memdel((void*)&msh->ps_one);
- ft_memdel((void*)&msh->bu_ptr);
+ ft_memdel((void*)&msh->bu_ref);
ft_memdel((void*)&msh);
}