summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/e_externs_pipes.c3
-rw-r--r--src/s_lpipes.c4
2 files changed, 2 insertions, 5 deletions
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;