aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_free_words.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 18:52:32 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 18:52:32 +0100
commit0e55e163397f2b109321ad284d298e60ee3b97a7 (patch)
treef30aacccaefc5c063a2a6840f02d2e02bdef6b90 /src/ft_free_words.c
parentCorrect (diff)
download42-cub3d-0e55e163397f2b109321ad284d298e60ee3b97a7.tar.gz
42-cub3d-0e55e163397f2b109321ad284d298e60ee3b97a7.tar.bz2
42-cub3d-0e55e163397f2b109321ad284d298e60ee3b97a7.tar.xz
42-cub3d-0e55e163397f2b109321ad284d298e60ee3b97a7.tar.zst
42-cub3d-0e55e163397f2b109321ad284d298e60ee3b97a7.zip
cleaner frees
Diffstat (limited to 'src/ft_free_words.c')
-rw-r--r--src/ft_free_words.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_free_words.c b/src/ft_free_words.c
index 3231791..b09b891 100644
--- a/src/ft_free_words.c
+++ b/src/ft_free_words.c
@@ -1,10 +1,11 @@
#include <libft.h>
void
-ft_free_words(char **words)
+ft_free_words(char **words, char *line)
{
size_t i;
+ ft_memdel(line);
i = 0;
while (words[i])
{