From b5a5ae2a5a51fea06ee8e30ecb6c59afe18469ff Mon Sep 17 00:00:00 2001 From: attilavs2 Date: Tue, 23 Jul 2024 17:57:22 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20:=20Fuite=20de=20m=C3=A9moire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/npc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/npc.c b/src/npc.c index 8f84f66..1002936 100644 --- a/src/npc.c +++ b/src/npc.c @@ -99,6 +99,8 @@ int as_reconstruct_path(int16_t *came_from, int w, int h, int16_t spos, npc->ypath[npc->path_length-i] = ty; } + free(came_from); + return 0; as_recons_fail: