Fix the problem with dl()'d modules not freeing their resources properly

This commit is contained in:
Zeev Suraski 2000-04-03 05:26:41 +00:00
parent 69ff396312
commit f44afc6e99

View File

@ -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 {