mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
clear old callback
This commit is contained in:
parent
f2b56c8b76
commit
bfd6342971
4
php_uv.c
4
php_uv.c
@ -266,6 +266,10 @@ static inline void php_uv_cb_init(php_uv_cb_t **result, php_uv_t *uv, zend_fcall
|
||||
memcpy(&cb->fci, fci, sizeof(zend_fcall_info));
|
||||
memcpy(&cb->fcc, fcc, sizeof(zend_fcall_info_cache));
|
||||
|
||||
if (uv->callback[type] != NULL) {
|
||||
efree(uv->callback[type]);
|
||||
}
|
||||
|
||||
if (ZEND_FCI_INITIALIZED(*fci)) {
|
||||
Z_ADDREF_P(cb->fci.function_name);
|
||||
#if PHP_VERSION_ID >= 50300
|
||||
|
Loading…
Reference in New Issue
Block a user