From 1bfb92324f267291f556cb464ea42a07d3c8224a Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 11 Mar 2020 00:36:54 +0100 Subject: Freed leaks --- src/ft_init_lists.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ft_init_lists.c') diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index 82f5c0e..bd2ae74 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -76,8 +76,6 @@ static int8_t cl->f_rgb = ft_init_rgb(); cl->c_rgb = ft_init_rgb(); cl->rlist = ft_init_s_ray(); - if (!(cl->rlist.wall_dist_tab = (float*)malloc(1 * sizeof(float)))) - return (-1); cl->currlvl = 0; cl->walltexgood = 0; ft_init_funptr(cl); -- cgit v1.2.3