mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 19:03:38 +08:00
Back out removing a halloc_register to fix a leak
This commit is contained in:
parent
4da6986a68
commit
8d016040ab
4
exec.cpp
4
exec.cpp
|
@ -1201,9 +1201,7 @@ void exec( parser_t &parser, job_t *j )
|
||||||
|
|
||||||
if( orig_def )
|
if( orig_def )
|
||||||
{
|
{
|
||||||
//def = (wchar_t *)halloc_register( j, const_cast<wchar_t *>(orig_def) );
|
def = (wchar_t *)halloc_register( j, const_cast<wchar_t *>(orig_def) );
|
||||||
// PCA LEAKS
|
|
||||||
def = (wchar_t *)orig_def;
|
|
||||||
}
|
}
|
||||||
if( def == 0 )
|
if( def == 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user