From 9225b4f1ffd7b0e848592c3a718f59e4b70a6e02 Mon Sep 17 00:00:00 2001
From: JozanLeClerc <bousset.rudy@gmail.com>
Date: Mon, 10 Aug 2020 20:37:22 +0200
Subject: Lots of stuff to do

---
 TODO.org              | 2 +-
 src/e_externs_pipes.c | 3 ---
 src/s_lpipes.c        | 4 ++--
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/TODO.org b/TODO.org
index 0975449..3842e45 100644
--- a/TODO.org
+++ b/TODO.org
@@ -2,7 +2,7 @@
 ** DONE PWD=qwe; pwd <== recheck
 ** DONE VISUAL=qweqwe crontab -e <=== deal with it
 ** DONE cd qweqwe <=== stderr
-** TODO lpipes leaks <=== this is a big one (split lpipes | lcom | com)
+** TODO [#A] lpipes leaks <=== this is a big one (split lpipes | lcom | com)
 ** TODO [#C] Handle memory
 
 * Stuff to add
diff --git a/src/e_externs_pipes.c b/src/e_externs_pipes.c
index 02978db..13842a7 100644
--- a/src/e_externs_pipes.c
+++ b/src/e_externs_pipes.c
@@ -135,7 +135,6 @@ void
 					t_msh *msh)
 {
 	struct s_lpipes	*head;
-	/* struct s_lpipes	*head_del; */
 	struct s_lpipes	*rptr;
 	char			**envpath;
 	char			**fullpath;
@@ -145,7 +144,6 @@ void
 
 	head = ptr;
 	rptr = ptr;
-	/* head_del = ptr; */
 	pipes = e_get_pipes_count(head);
 	if (!(fullpath = (char **)malloc((pipes + 2) * sizeof(char *))))
 		f_alloc_and_destroy_msh(msh);
@@ -176,5 +174,4 @@ void
 	i = 0;
 	exec_path((const char**)fullpath, head, msh);
 	ft_delwords(fullpath);
-	/* lpipes_clear(&head_del); */
 }
diff --git a/src/s_lpipes.c b/src/s_lpipes.c
index 69a6cc4..cb78df3 100644
--- a/src/s_lpipes.c
+++ b/src/s_lpipes.c
@@ -53,8 +53,8 @@ void
 	while (tmp)
 	{
 		renext = tmp->next;
-		/* lcom_clear(&tmp->one); */
-		/* ft_memdel((void*)&tmp); */
+		lcom_clear(&tmp->one);
+		ft_memdel((void*)&tmp);
 		tmp = renext;
 	}
 	*lpipes = NULL;
-- 
cgit v1.2.3