mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Back out removing a halloc_register to fix a leak
This commit is contained in:
parent
4da6986a68
commit
8d016040ab
1 changed files with 1 additions and 3 deletions
4
exec.cpp
4
exec.cpp
|
@ -1201,9 +1201,7 @@ void exec( parser_t &parser, job_t *j )
|
|||
|
||||
if( orig_def )
|
||||
{
|
||||
//def = (wchar_t *)halloc_register( j, const_cast<wchar_t *>(orig_def) );
|
||||
// PCA LEAKS
|
||||
def = (wchar_t *)orig_def;
|
||||
def = (wchar_t *)halloc_register( j, const_cast<wchar_t *>(orig_def) );
|
||||
}
|
||||
if( def == 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue