aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
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;
}