From 8f7325fc244995ae9f7acc2ef788aae31a46cc81 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 2 Dec 2016 17:03:05 +0100 Subject: [PATCH] Fix leak in shift_right_function --- Zend/zend_operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 96571da53e..aa2aaf1ab1 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1586,10 +1586,10 @@ ZEND_API int ZEND_FASTCALL shift_right_function(zval *result, zval *op1, zval *o /* prevent wrapping quirkiness on some processors where >> 64 + x == >> x */ if (UNEXPECTED((zend_ulong)op2_lval >= SIZEOF_ZEND_LONG * 8)) { if (EXPECTED(op2_lval > 0)) { - ZVAL_LONG(result, (op1_lval < 0) ? -1 : 0); if (op1 == result) { zval_dtor(result); } + ZVAL_LONG(result, (op1_lval < 0) ? -1 : 0); return SUCCESS; } else { if (EG(current_execute_data) && !CG(in_compilation)) { -- 2.50.0