This commit is contained in:
kinou-p 2022-03-01 12:00:13 +01:00
parent 7c70e80b62
commit 1450e83841
2 changed files with 11 additions and 0 deletions

10
map/not_rectangle.ber Normal file
View File

@ -0,0 +1,10 @@
1111111111111
1E110C00C0001
1000000011001
10C011CC01C01
100011C001C001
10C000C000C01
100001C001C01
1000100C01C01
1P0001C000C01
1111111111111

View File

@ -22,6 +22,7 @@ void ft_error(char *error_msg, char **map)
while (map[i]) while (map[i])
free(map[i++]); free(map[i++]);
} }
free(map);
ft_putstr_fd(error_msg, 2); ft_putstr_fd(error_msg, 2);
exit(1); exit(1);
} }