Commit 644f549b authored by Niels Möller's avatar Niels Möller
Browse files

* src/unix_user.c (do_file_exists): Deallocate the name properly.

Rev: src/unix_user.c:1.2
parent d18bb86a
......@@ -97,7 +97,11 @@ do_file_exists(struct user *u,
struct stat st;
if (!user->home)
return 0;
{
if (free)
lsh_string_free(name);
return 0;
}
path = ssh_format(free ? "%lS/%lfS%c" : "%lS/%lS%c",
user->home, name, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment