diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-10 17:56:38 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-10 17:56:38 +0200 |
commit | 4b233e06a16bf5183223e8253b4d9ac9ee59e6a2 (patch) | |
tree | dc36a64dcad37e076f478aadc7cccb0f322ea192 /src/s_lcom.c | |
parent | pwd TODO done (diff) | |
download | 42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.tar.gz 42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.tar.bz2 42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.tar.xz 42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.tar.zst 42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.zip |
Work in progress
Diffstat (limited to 'src/s_lcom.c')
-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; |