aboutsummaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-26 13:42:59 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-26 13:42:59 +0300
commit0a6f8b49723aa8da143953bc011582542d2f2010 (patch)
treed2fb6216ff0815a8539d3b315e188181e98bbf89 /map.h
parent5bf01bf1955cb1be6dc498543f8b2064b3424177 (diff)
downloadastar-0a6f8b49723aa8da143953bc011582542d2f2010.tar.xz
Fix memory leaks
Diffstat (limited to 'map.h')
-rw-r--r--map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/map.h b/map.h
index ef76a7c..b0cb6b1 100644
--- a/map.h
+++ b/map.h
@@ -43,6 +43,9 @@ Map file_plaintext_map(char *filename, size_t *width, size_t *height, Position *
* path could be NULL to draw a map with no path. So can cursor, frontier and visited */
void draw_map(Map map, size_t width, size_t height, int offset_x, int offset_y, Position start, Position goal, Position *cursor, Path path, char visited[height][width], PositionPQ *frontier);
+/* Frees all the memory reserved for the map */
+void map_free(Map map, size_t height);
+
void print_map_out(Map map, size_t width, size_t height);
#endif /*MAP_H_ */