files: fix a memory leak
parent
2e75c22759
commit
60da39cdf7
|
@ -1398,7 +1398,7 @@ char *get_full_path(const char *origpath)
|
||||||
|
|
||||||
while (d_here == NULL && attempts < 20) {
|
while (d_here == NULL && attempts < 20) {
|
||||||
IGNORE_CALL_RESULT(chdir(".."));
|
IGNORE_CALL_RESULT(chdir(".."));
|
||||||
d_here = getcwd(NULL, PATH_MAX + 1);
|
d_here = getcwd(currentdir, PATH_MAX + 1);
|
||||||
attempts++;
|
attempts++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue