Back out removing a halloc_register to fix a leak

This commit is contained in:
ridiculousfish 2012-01-29 22:32:01 -08:00
parent 4da6986a68
commit 8d016040ab

View File

@ -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 )
{