summaryrefslogtreecommitdiffstats
path: root/src/s_lredir.c
diff options
context:
space:
mode:
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;
}