]> granicus.if.org Git - php/commitdiff
- Fix memory leak.
authorAndi Gutmans <andi@php.net>
Sun, 9 Jul 2000 20:21:20 +0000 (20:21 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 9 Jul 2000 20:21:20 +0000 (20:21 +0000)
Zend/zend_execute.c

index 0bc15d35bdbdeab162ba0ac9b2609a7746615125..40b2480fb34f452d3500458755587a17fd473f1d 100644 (file)
@@ -1933,7 +1933,7 @@ send_by_ref:
                                                        NEXT_OPCODE();
                                                }
                                        }
-                                       if (opline->op1.op_type == IS_TMP_VAR) { /* temporary variable */
+                                       if (!opline->extended_value && EG(free_op1)) { /* temporary variable */
                                                zval *new_expr;
 
                                                ALLOC_ZVAL(new_expr);