X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_pool_api.c;fp=http_request_pool_api.c;h=b90d19de23b4d21cc257e4a8551f3cf11076e1db;hp=4fa5bb6eb4fb413052a1f5cf1e367eeec75ed510;hb=0a35a30bb5fcb9342af1839d48eee317efcff726;hpb=fa184d3b9f22921108a64c8062f07e3b8bb01e72 diff --git a/http_request_pool_api.c b/http_request_pool_api.c index 4fa5bb6..b90d19d 100644 --- a/http_request_pool_api.c +++ b/http_request_pool_api.c @@ -291,10 +291,13 @@ PHP_HTTP_API void _http_request_pool_dtor(http_request_pool *pool) fprintf(stderr, "Destructing request pool %p\n", pool); #endif +#if HTTP_HAVE_EVENT + efree(pool->timeout); +#endif + pool->unfinished = 0; zend_llist_clean(&pool->finished); zend_llist_clean(&pool->handles); - efree(pool->timeout); http_persistent_handle_release("http_request_pool", &pool->ch); } /* }}} */