From 4b233e06a16bf5183223e8253b4d9ac9ee59e6a2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 10 Aug 2020 17:56:38 +0200 Subject: Work in progress --- src/s_lcom.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/s_lcom.c') diff --git a/src/s_lcom.c b/src/s_lcom.c index f1ef2a4..7ef64b3 100644 --- a/src/s_lcom.c +++ b/src/s_lcom.c @@ -97,6 +97,8 @@ void ft_delwords(tmp->argv); if (tmp->redir != 0) ft_memdel((void*)&tmp->rdrpath); + if (tmp->env_fork != NULL) + ft_delwords(tmp->env_fork); ft_memdel((void*)&tmp); tmp = renext; } @@ -119,6 +121,7 @@ t_lcom link->rdrfd = 0; link->rdrpath = NULL; link->pipes = NULL; + link->env_fork = NULL; if (!word) { link->next = NULL; -- cgit v1.2.3