From f44afc6e99e1a41702fa78372ee21aae17756967 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 3 Apr 2000 05:26:41 +0000 Subject: [PATCH] Fix the problem with dl()'d modules not freeing their resources properly --- Zend/zend_list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Zend/zend_list.c b/Zend/zend_list.c index 4d1bc495b5..1f9ecacef9 100644 --- a/Zend/zend_list.c +++ b/Zend/zend_list.c @@ -273,6 +273,7 @@ int clean_module_resource_destructors(list_destructors_entry *ld, int *module_nu if (ld->module_number == *module_number) { ELS_FETCH(); + zend_hash_apply_with_argument(&EG(regular_list), (int (*)(void *,void *)) clean_module_resource, (void *) &(ld->resource_id)); zend_hash_apply_with_argument(&EG(persistent_list), (int (*)(void *,void *)) clean_module_resource, (void *) &(ld->resource_id)); return 1; } else { -- 2.50.1