diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-29 22:32:01 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-29 22:32:01 -0800 |
commit | 8d016040abaa60416dd1e3625b1727dcd84f3e79 (patch) | |
tree | 09e5730cd13d8461f103e9a017ad362ba7a98daf /exec.cpp | |
parent | 4da6986a682100a9f31822c0b7f26b0cffd813a8 (diff) |
Back out removing a halloc_register to fix a leak
Diffstat (limited to 'exec.cpp')
-rw-r--r-- | exec.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 ) { |