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

@@ -1,22 +1,75 @@
NO assets/textures/backRoom3.png
SO assets/textures/backRoom3.png
SO assets/textures/forest.png
WE assets/textures/backRoom3.png
EA assets/textures/backRoom3.png
C 164,157,79
F 30,55,55
C 255,255,255
111111111111111111111111111
100000000011100000000000001
10110000011 110000000000N01
10010000000100000000000011
111111111011000001110000000000001
100000000011000001110111110111111
11110111111111011100000010001
11110111111111011101010010001
11000000110101011100000010001
10000000000000001100000010001
10000000000000001101010010001
1100000111010101111101111000111
11110111 10110101 11111010001
11111111 1111111 111111111111
11111111111111111111111111111
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000N00000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
10000000000000000000000000001
11111111111111111111111111111

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/25 19:47:02 by aortigos #+# #+# */
/* Updated: 2026/01/25 15:48:40 by aortigos ### ########.fr */
/* Updated: 2026/01/25 16:27:23 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */

36162
leak.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/15 18:37:44 by aortigos #+# #+# */
/* Updated: 2025/12/09 19:59:07 by aortigos ### ########.fr */
/* Updated: 2026/01/25 16:06:30 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -47,6 +47,12 @@ char *get_next_line(int fd)
char *line;
static char *left_str;
if (fd == -1)
{
free(left_str);
left_str = NULL;
return (NULL);
}
if (fd < 0 || BUFFER_SIZE <= 0)
{
return (0);

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);
}