diff options
Diffstat (limited to 'src/ft_get_colors.c')
-rw-r--r-- | src/ft_get_colors.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c index 226b427..f21cd99 100644 --- a/src/ft_get_colors.c +++ b/src/ft_get_colors.c @@ -37,6 +37,7 @@ ft_get_f_color(char **words, t_cub *clist) clist->f_color += ft_atoi(num[1]); clist->f_color *= 1000; clist->f_color += ft_atoi(num[2]); + ft_free_words(num); return (0); } @@ -62,5 +63,6 @@ ft_get_c_color(char **words, t_cub *clist) clist->c_color += ft_atoi(num[1]); clist->c_color *= 1000; clist->c_color += ft_atoi(num[2]); + ft_free_words(num); return (0); } |