From 04d89595efb66560b8123855df95eee9047c5d2c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 4 Feb 2020 22:22:10 +0100 Subject: leaks fix --- src/ft_free_words.c | 2 +- src/ft_get_map.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ft_free_words.c b/src/ft_free_words.c index 4ea9ef2..99b7daf 100644 --- a/src/ft_free_words.c +++ b/src/ft_free_words.c @@ -24,5 +24,5 @@ void ft_memdel((void**)&words[i]); i++; } - ft_memdel((void**)words); + ft_memdel((void**)&words); } diff --git a/src/ft_get_map.c b/src/ft_get_map.c index a0ddfbb..c5ab0d7 100644 --- a/src/ft_get_map.c +++ b/src/ft_get_map.c @@ -94,6 +94,7 @@ int ft_memdel((void**)&line); i++; } + ft_memdel((void**)&line); clist->mapl[((clist->map_w + 1) * i) - 1] = '\0'; ft_free_words(clist->map); clist->map = ft_split(clist->mapl, '\n'); -- cgit v1.2.3