diff options
Diffstat (limited to '')
-rw-r--r-- | src/s_lcom.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |