com php-src: Fixed wrong zval_dtor() usage: ext/gmp /gmp.c
| From: | Dmitry Stogov | Date: | Thu, 05 Jul 2018 10:37:59 +0000 |
| Subject: | com php-src: Fixed wrong zval_dtor() usage: ext/gmp /gmp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102415@lists.php.net to get a copy of this message | ||
Commit: 77c6ca7b620d744538d701d9fca446950fb6f568
Author: Dmitry Stogov <dmitry@zend.com> Thu, 5 Jul 2018 13:37:59 +0300
Parents: b01d9e826caf76c1e75343b5251de078c50e1e2d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=77c6ca7b620d744538d701d9fca446950fb6f568
Log:
Fixed wrong zval_dtor() usage
Changed paths:
M ext/gmp/gmp.c
Diff:
diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c
index 761ca6f..84e7b44 100644
--- a/ext/gmp/gmp.c
+++ b/ext/gmp/gmp.c
@@ -549,7 +549,7 @@ static int gmp_do_operation(zend_uchar opcode, zval *result, zval *op1, zval *op
retval = gmp_do_operation_ex(opcode, result, op1, op2);
if (retval == SUCCESS && op1 == &op1_copy) {
- zval_dtor(op1);
+ zval_ptr_dtor(op1);
}
return retval;