summaryrefslogtreecommitdiffstats
path: root/src/s_lredir.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-28 18:26:19 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-28 18:26:19 +0200
commitcbbe5e77159719bea34505998c4776311df47281 (patch)
treeacc96600aa4173105018ffe79584c562c8ca0e1b /src/s_lredir.c
parentIn progress (diff)
download42-minishell-cbbe5e77159719bea34505998c4776311df47281.tar.gz
42-minishell-cbbe5e77159719bea34505998c4776311df47281.tar.bz2
42-minishell-cbbe5e77159719bea34505998c4776311df47281.tar.xz
42-minishell-cbbe5e77159719bea34505998c4776311df47281.tar.zst
42-minishell-cbbe5e77159719bea34505998c4776311df47281.zip
oh yes
Diffstat (limited to 'src/s_lredir.c')
-rw-r--r--src/s_lredir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/s_lredir.c b/src/s_lredir.c
index 1aae3be..84e857c 100644
--- a/src/s_lredir.c
+++ b/src/s_lredir.c
@@ -52,6 +52,8 @@ void s_lredir_clear(struct s_lredir **lredir)
while (tmp != NULL)
{
renext = tmp->next;
+ if (tmp->heredoc != NULL)
+ ft_memdel((void*)&tmp->heredoc);
ft_memdel((void*)&tmp);
tmp = renext;
}