aboutsummaryrefslogtreecommitdiffstats
path: root/libft/src/ft_dprintf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libft/src/ft_dprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libft/src/ft_dprintf.c b/libft/src/ft_dprintf.c
index d9f69c1..a717df5 100644
--- a/libft/src/ft_dprintf.c
+++ b/libft/src/ft_dprintf.c
@@ -23,9 +23,9 @@ static int
int ret;
ret = write(fd, pflist->output, pflist->fulllen);
- ft_memdel(pflist->output);
- ft_memdel(pflist->fullflag);
- ft_memdel(pflist);
+ ft_memdel((void**)&pflist->output);
+ ft_memdel((void**)&pflist->fullflag);
+ ft_memdel((void**)&pflist);
return (ret);
}