mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
Fix non-repeating timers leaking after successful completion
This commit is contained in:
parent
71aa70aee1
commit
f694707cfe
4
php_uv.c
4
php_uv.c
@ -2142,6 +2142,10 @@ static void php_uv_timer_cb(uv_timer_t *handle)
|
|||||||
|
|
||||||
zval_ptr_dtor(&retval);
|
zval_ptr_dtor(&retval);
|
||||||
zval_ptr_dtor(¶ms[0]);
|
zval_ptr_dtor(¶ms[0]);
|
||||||
|
|
||||||
|
if (!handle->repeat) {
|
||||||
|
zend_list_delete(uv->resource_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void php_uv_signal_cb(uv_signal_t *handle, int sig_num)
|
static void php_uv_signal_cb(uv_signal_t *handle, int sig_num)
|
||||||
|
Loading…
Reference in New Issue
Block a user