summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--TODO.org2
-rw-r--r--src/e_externs_pipes.c3
-rw-r--r--src/s_lpipes.c4
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;