summaryrefslogtreecommitdiffstats
path: root/src/ft_m_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 16:09:25 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 16:09:25 +0200
commit23c53fec41ef1c9b62757c73b8ff8362139f8838 (patch)
treee2604b61531d9e6864c3b6038d8ea6848fc02903 /src/ft_m_loop.c
parentGood (diff)
download42-minishell-23c53fec41ef1c9b62757c73b8ff8362139f8838.tar.gz
42-minishell-23c53fec41ef1c9b62757c73b8ff8362139f8838.tar.bz2
42-minishell-23c53fec41ef1c9b62757c73b8ff8362139f8838.tar.xz
42-minishell-23c53fec41ef1c9b62757c73b8ff8362139f8838.tar.zst
42-minishell-23c53fec41ef1c9b62757c73b8ff8362139f8838.zip
Linked list works, not memdeling
Diffstat (limited to '')
-rw-r--r--src/ft_m_loop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c
index 4c22009..3a44d05 100644
--- a/src/ft_m_loop.c
+++ b/src/ft_m_loop.c
@@ -18,6 +18,7 @@
#include "ft_m_loop.h"
#include "ft_m_prompt.h"
#include "ft_p_line.h"
+#include "ft_s_lcom.h"
int32_t
ft_m_loop(t_msh *msh)
@@ -35,6 +36,7 @@ int32_t
ft_p_line(line, msh);
ft_memdel((void*)&line);
ft_e_lcom(msh);
+ ft_lcom_clear(&msh->curr);
/* TODO: memdel lcom - INSTALL VALGRIND */
}
else