mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Fix the problem with dl()'d modules not freeing their resources properly
This commit is contained in:
parent
69ff396312
commit
f44afc6e99
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user