diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-04 22:22:10 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-04 22:22:10 +0100 |
commit | 04d89595efb66560b8123855df95eee9047c5d2c (patch) | |
tree | 34f044241a33f9d59a769a169b51341edaab3b4f /src | |
parent | Fix (diff) | |
download | 42-cub3d-04d89595efb66560b8123855df95eee9047c5d2c.tar.gz 42-cub3d-04d89595efb66560b8123855df95eee9047c5d2c.tar.bz2 42-cub3d-04d89595efb66560b8123855df95eee9047c5d2c.tar.xz 42-cub3d-04d89595efb66560b8123855df95eee9047c5d2c.tar.zst 42-cub3d-04d89595efb66560b8123855df95eee9047c5d2c.zip |
leaks fix
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_free_words.c | 2 | ||||
-rw-r--r-- | src/ft_get_map.c | 1 |
2 files changed, 2 insertions, 1 deletions
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'); |