From 44a03df9266d4e011e0d8501a8e5f511a44034b5 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 21 Nov 2003 04:45:43 +0000 Subject: [PATCH] Cleaner patch for bug #26281. --- Zend/zend_execute.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 19e44bf23e..36b4bb9f4b 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -194,15 +194,7 @@ static inline void zend_switch_free(zend_op *opline, temp_variable *Ts TSRMLS_DC switch (opline->op1.op_type) { case IS_VAR: if (!T(opline->op1.u.var).var.ptr_ptr) { - temp_variable *T = &T(opline->op1.u.var); - - /* perform the equivalent of equivalent of a - * quick & silent get_zval_ptr, and FREE_OP - */ - PZVAL_UNLOCK(T->EA.data.str_offset.str); -#ifdef ilia_0 /* attempts to free already freed data */ - zval_dtor(&T->tmp_var); -#endif + zval_ptr_dtor(&T(opline->op1.u.var).var.ptr); } else { zval_ptr_dtor(&T(opline->op1.u.var).var.ptr); if (opline->extended_value) { /* foreach() free */ -- 2.50.1