changeset 14723:aebd296a15c4

Prevent double release of input arguments in JIT
author Max Brister <max@2bass.com>
date Tue, 29 May 2012 13:51:02 -0500
parents 8697e3e9d77a
children 3b40dbc14572
files src/pt-jit.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/pt-jit.h
+++ b/src/pt-jit.h
@@ -1526,7 +1526,7 @@
 
   void track_value (jit_value *value)
   {
-    if (value->type ())
+    if (value->type () && ! dynamic_cast<jit_instruction *>(value))
       constants.push_back (value);
     all_values.push_back (value);
   }