From 265c3ed6cfd05b78fb65187f18b3e1ecb560c242 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 5 Jul 2018 10:57:49 +0300 Subject: Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks. --- ext/zip/php_zip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/zip/php_zip.c') 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; } -- cgit v1.2.1