fixing leaks

This commit is contained in:
Angel Ortigosa Perez
2026-01-25 16:40:11 +01:00
parent bec53b6484
commit 16b935470a
6 changed files with 36245 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/04 09:28:05 by aortigos #+# #+# */
/* Updated: 2026/01/25 15:49:07 by aortigos ### ########.fr */
/* Updated: 2026/01/25 16:09:18 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -92,6 +92,7 @@ void process_map(t_data *map, int *count)
(*count)++;
} else if (res == -1)
{
get_next_line(-1);
ft_putstr_fd(ERR_INV_COP, 2);
freetl(map->ture, map->line, map->fd);
exit(1);

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/05 15:42:28 by aortigos #+# #+# */
/* Updated: 2026/01/25 10:57:39 by aortigos ### ########.fr */
/* Updated: 2026/01/25 16:08:01 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -76,6 +76,9 @@ int check_count_textures(t_data *m, int count)
{
(void)m;
if (count != 6)
{
get_next_line(-1);
return (ft_putstr_fd(ERR_MAP_INV, 2), 0);
}
return (1);
}