aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-29 14:52:47 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-29 14:52:47 +0300
commit5e7591a2f684bba637e120497a2ba0fdd3db8dda (patch)
tree344e55bf37a8bae5a31f231108a20bd57a3f4cb8 /map.c
parent7a69d0103dadc08f228d14b27d38df193044bb29 (diff)
downloadastar-5e7591a2f684bba637e120497a2ba0fdd3db8dda.tar.xz
Make the stack dynamic
Diffstat (limited to 'map.c')
-rw-r--r--map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/map.c b/map.c
index f26d4b1..4303003 100644
--- a/map.c
+++ b/map.c
@@ -158,6 +158,7 @@ Map rbt_maze_map(size_t width, size_t height, unsigned int seed) {
} while (ps_peek(ps).x != beginning_cell.x || ps_peek(ps).y != beginning_cell.y) ;
visited_free(visited, height);
+ ps_free(ps);
return map;
}