From 50e51b4513eda93a0bc56c212ebbe93b1283856c Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 27 Feb 2026 08:23:02 +0000 Subject: [PATCH] Fix memory leak, from Chris Lewis, reported by Huihui Huang. --- file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/file.c b/file.c index 407a7dc7..030082a5 100644 --- a/file.c +++ b/file.c @@ -58,6 +58,7 @@ file_get_path(struct client *c, const char *file) if (*path == '/') return (path); xasprintf(&full_path, "%s/%s", server_client_get_cwd(c, NULL), path); + free(path); return (full_path); }