From 8d7f65c1c04f7124f1a34062be377fdbe721c46a Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 2 Feb 2020 17:05:54 +0100 Subject: Correct ft_memdel --- src/ft_free_words.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_free_words.c') diff --git a/src/ft_free_words.c b/src/ft_free_words.c index 3231791..1029710 100644 --- a/src/ft_free_words.c +++ b/src/ft_free_words.c @@ -8,8 +8,8 @@ ft_free_words(char **words) i = 0; while (words[i]) { - ft_memdel(words[i]); + ft_memdel((void**)&words[i]); i++; } - ft_memdel(words); + ft_memdel((void**)&words); } -- cgit v1.2.3