mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-26 03:35:17 +00:00
Stop leaking the result of wrealpath
This commit is contained in:
parent
f920be5ea3
commit
b0cbad84f4
1 changed files with 8 additions and 8 deletions
|
@ -1640,8 +1640,7 @@ static void expand_home_directory(wcstring &input)
|
|||
}
|
||||
}
|
||||
|
||||
wchar_t *realhome;
|
||||
realhome = wrealpath(home, NULL);
|
||||
wchar_t *realhome = wrealpath(home, NULL);
|
||||
|
||||
if (! tilde_error && realhome)
|
||||
{
|
||||
|
@ -1651,6 +1650,7 @@ static void expand_home_directory(wcstring &input)
|
|||
{
|
||||
input[0] = L'~';
|
||||
}
|
||||
free((void *)realhome);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue