bug found

found bug in parser that made link adding impossible
This commit is contained in:
Tanguy MAZE
2019-04-24 09:54:24 +02:00
parent c35deace58
commit fe1c85371f
8 changed files with 37 additions and 27 deletions

View File

@@ -6,7 +6,7 @@
/* By: mndhlovu <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/05 06:35:40 by mndhlovu #+# #+# */
/* Updated: 2019/04/22 15:31:10 by mndhlovu ### ########.fr */
/* Updated: 2019/04/23 11:01:37 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -51,7 +51,8 @@ void lm_clean_data(t_lmdata *data)
i = 0;
while (i < data->nb_nodes)
{
lst_inddel(&(data->adj[i]));
if (data->adj && data->adj[i])
lst_inddel(&(data->adj[i]));
i++;
}
ft_memdel((void**)&(data->adj));