mirror of
https://github.com/php/php-src.git
synced 2026-04-19 14:01:01 +02:00
Fixed reference counting
This commit is contained in:
@@ -216,7 +216,9 @@ static void proc_open_rsrc_dtor(zend_resource *rsrc TSRMLS_DC)
|
||||
/* Close all handles to avoid a deadlock */
|
||||
for (i = 0; i < proc->npipes; i++) {
|
||||
if (proc->pipes[i] != 0) {
|
||||
zend_list_delete(proc->pipes[i]);
|
||||
if (--GC_REFCOUNT(proc->pipes[i]) <= 0) {
|
||||
zend_list_delete(proc->pipes[i]);
|
||||
}
|
||||
proc->pipes[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user