no more leaks on all maps

This commit is contained in:
Mthandazo Ndhlovu
2019-05-02 13:25:41 +02:00
parent 8552cf8a32
commit a40b6b00e7
9 changed files with 10572 additions and 7269 deletions

View File

@@ -6,7 +6,7 @@
/* By: mndhlovu <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/25 06:31:37 by mndhlovu #+# #+# */
/* Updated: 2019/04/30 07:56:14 by mndhlovu ### ########.fr */
/* Updated: 2019/05/02 13:20:36 by mndhlovu ### ########.fr */
/* */
/* ************************************************************************** */
@@ -78,6 +78,8 @@ int lm_add_vertex(t_lmdata *ldata, char *raw, char flag,
ft_del_words_tables(&tab);
return (1);
}
ft_del_words_tables(&tab);
free(new);
}
return (0);
}
@@ -122,5 +124,6 @@ int lm_ext_conn(t_holder *holder, t_lmdata *data, char *raw)
(holder->count)++;
return (1);
}
free(new);
return (0);
}