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