summaryrefslogtreecommitdiff
path: root/ext/zip/zip.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/zip.c')
-rw-r--r--ext/zip/zip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/zip/zip.c b/ext/zip/zip.c
index c35258e907..046083ae98 100644
--- a/ext/zip/zip.c
+++ b/ext/zip/zip.c
@@ -73,16 +73,17 @@ ZEND_GET_MODULE(zip)
/* {{{ php_zip_free_dir
*/
-static void php_zip_free_dir(zend_rsrc_list_entry *rsrc)
+static void php_zip_free_dir(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
ZZIP_DIR *z_dir = (ZZIP_DIR *) rsrc->ptr;
+
zzip_closedir(z_dir);
}
/* }}} */
/* {{{ php_zip_free_entry
*/
-static void php_zip_free_entry(zend_rsrc_list_entry *rsrc)
+static void php_zip_free_entry(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
php_zzip_dirent *entry = (php_zzip_dirent *) rsrc->ptr;