summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-07-05 10:57:49 +0300
committerDmitry Stogov <dmitry@zend.com>2018-07-05 10:57:49 +0300
commit265c3ed6cfd05b78fb65187f18b3e1ecb560c242 (patch)
tree55601eaa8fa113bba16538ef475420c38f92e3b1 /ext/zip/php_zip.c
parent587ab006984dae0ecee2c8eb41f08d3da155d7ef (diff)
downloadphp-git-265c3ed6cfd05b78fb65187f18b3e1ecb560c242.tar.gz
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 24dd0020d6..319c1ddc66 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -2260,9 +2260,9 @@ static ZIPARCHIVE_METHOD(getExternalAttributesIndex)
(zip_flags_t)flags, &opsys, &attr) < 0) {
RETURN_FALSE;
}
- zval_dtor(z_opsys);
+ zval_ptr_dtor(z_opsys);
ZVAL_LONG(z_opsys, opsys);
- zval_dtor(z_attr);
+ zval_ptr_dtor(z_attr);
ZVAL_LONG(z_attr, attr);
RETURN_TRUE;
}