aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-29 22:32:01 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-29 22:32:01 -0800
commit8d016040abaa60416dd1e3625b1727dcd84f3e79 (patch)
tree09e5730cd13d8461f103e9a017ad362ba7a98daf /exec.cpp
parent4da6986a682100a9f31822c0b7f26b0cffd813a8 (diff)
Back out removing a halloc_register to fix a leak
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/exec.cpp b/exec.cpp
index 7897cafc..4f86d981 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<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 )
{