summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-10 20:37:22 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-10 20:37:22 +0200
commit9225b4f1ffd7b0e848592c3a718f59e4b70a6e02 (patch)
tree2f833ca75e0d1daa77e77ceb959d479f8a438c49 /src
parentOkok (diff)
download42-minishell-9225b4f1ffd7b0e848592c3a718f59e4b70a6e02.tar.gz
42-minishell-9225b4f1ffd7b0e848592c3a718f59e4b70a6e02.tar.bz2
42-minishell-9225b4f1ffd7b0e848592c3a718f59e4b70a6e02.tar.xz
42-minishell-9225b4f1ffd7b0e848592c3a718f59e4b70a6e02.tar.zst
42-minishell-9225b4f1ffd7b0e848592c3a718f59e4b70a6e02.zip
Lots of stuff to do
Diffstat (limited to 'src')
-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;