From 8d016040abaa60416dd1e3625b1727dcd84f3e79 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 29 Jan 2012 22:32:01 -0800 Subject: [PATCH] Back out removing a halloc_register to fix a leak --- exec.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exec.cpp b/exec.cpp index 7897cafc3..4f86d9815 100644 --- a/exec.cpp +++ b/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(orig_def) ); - // PCA LEAKS - def = (wchar_t *)orig_def; + def = (wchar_t *)halloc_register( j, const_cast(orig_def) ); } if( def == 0 ) {