correted invalid free

invalid free occuring with invalid chars in ant number
This commit is contained in:
Tanguy MAZE 2019-05-02 14:55:46 +02:00
parent 3156bddf27
commit 5894c0cdd0
2 changed files with 2 additions and 3 deletions

2
map3
View File

@ -1,4 +1,4 @@
272 2151
#Here is the number of lines required: 78 #Here is the number of lines required: 78
##start ##start
C_i2 3 3 C_i2 3 3

View File

@ -6,7 +6,7 @@
/* By: mndhlovu <mndhlovu@student.42.fr> +#+ +:+ +#+ */ /* By: mndhlovu <mndhlovu@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/20 15:24:51 by mndhlovu #+# #+# */ /* Created: 2019/04/20 15:24:51 by mndhlovu #+# #+# */
/* Updated: 2019/05/02 13:11:43 by mndhlovu ### ########.fr */ /* Updated: 2019/05/02 14:55:08 by tmaze ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -54,7 +54,6 @@ static int lm_get_ant_(int counter, t_lmdata *ldata
synt->nb_state = 1; synt->nb_state = 1;
return (1); return (1);
} }
free(line);
} }
return (0); return (0);
} }