1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00

Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  NEWS
  NEWS
  fix bug #75540 Segfault with libzip 1.3.1
This commit is contained in:
Remi Collet
2017-11-20 08:51:29 +01:00

View File

@@ -1537,7 +1537,10 @@ static ZIPARCHIVE_METHOD(close)
if ((err = zip_close(intern))) {
php_error_docref(NULL, E_WARNING, "%s", zip_strerror(intern));
#if LIBZIP_VERSION_MAJOR < 1 || (LIBZIP_VERSION_MAJOR == 1 && LIBZIP_VERSION_MINOR < 3) || (LIBZIP_VERSION_MAJOR == 1 && LIBZIP_VERSION_MINOR == 3 && LIBZIP_VERSION_MICRO < 1)
/* Fix memory leak in libzip < 1.3.1 */
zip_discard(intern);
#endif
}
efree(ze_obj->filename);