]> granicus.if.org Git - php/commitdiff
- Fix leaks (although there might be still a problem here).
authorAndi Gutmans <andi@php.net>
Tue, 2 Mar 2004 11:03:48 +0000 (11:03 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 2 Mar 2004 11:03:48 +0000 (11:03 +0000)
Zend/zend_compile.c

index 04334742eb8584d7cc2176d000657123e9df86d9..f2a684cc399087b4b0433d12592c8bf8a5066dd3 100644 (file)
@@ -1464,8 +1464,8 @@ static int generate_free_switch_expr(zend_switch_entry *switch_entry TSRMLS_DC)
 {
        zend_op *opline;
        
-       if (switch_entry->cond.op_type!=IS_VAR && switch_entry->cond.op_type!=IS_TMP_VAR) {
-               return 1;
+       if (switch_entry->cond.op_type != IS_VAR && switch_entry->cond.op_type != IS_TMP_VAR) {
+               return 0;
        }
        
        opline = get_next_op(CG(active_op_array) TSRMLS_CC);
@@ -1482,7 +1482,7 @@ static int generate_free_foreach_copy(znode *foreach_copy TSRMLS_DC)
        zend_op *opline;
        
        if (foreach_copy->op_type != IS_VAR && foreach_copy->op_type != IS_TMP_VAR) {
-               return 1;
+               return 0;
        }
 
        opline = get_next_op(CG(active_op_array) TSRMLS_CC);