From 41b72115398c3db24d0a556ec8b3938a1f304b23 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Tue, 2 Mar 2004 11:03:48 +0000 Subject: [PATCH] - Fix leaks (although there might be still a problem here). --- Zend/zend_compile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 04334742eb..f2a684cc39 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -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); -- 2.40.0