Commit 60da39cd authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

files: fix a memory leak

parent 2e75c227
Showing with 1 addition and 1 deletion
+1 -1
......@@ -1398,7 +1398,7 @@ char *get_full_path(const char *origpath)
while (d_here == NULL && attempts < 20) {
IGNORE_CALL_RESULT(chdir(".."));
d_here = getcwd(NULL, PATH_MAX + 1);
d_here = getcwd(currentdir, PATH_MAX + 1);
attempts++;
}
......
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