diff options
author | Nikita Popov <nikic@php.net> | 2016-12-02 17:03:05 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-12-02 17:03:05 +0100 |
commit | 8f7325fc244995ae9f7acc2ef788aae31a46cc81 (patch) | |
tree | 1c861ab9b30f9141f822909eae27aeb9b15cf5ed | |
parent | 3c1a0d75bf57c72377e43edfd59d3d862469ffb8 (diff) | |
download | php-git-8f7325fc244995ae9f7acc2ef788aae31a46cc81.tar.gz |
Fix leak in shift_right_function
-rw-r--r-- | Zend/zend_operators.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |