From c0c5582d5bbadca30b2fbae8d12ceb5ae18ffd4d Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 28 Apr 2020 18:42:06 +0200 Subject: The variable list works --- src/ft_s_destroy.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ft_s_destroy.c') 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 + #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); } -- cgit v1.2.3