Fix memory leak, from Chris Lewis, reported by Huihui Huang.

This commit is contained in:
nicm
2026-02-27 08:23:02 +00:00
parent dbb23d2182
commit 50e51b4513

1
file.c
View File

@@ -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);
}