- rename the configure option for libevent support and add the possibility
[m6w6/ext-http] / http_request_pool_api.c
index 4fa5bb6eb4fb413052a1f5cf1e367eeec75ed510..b90d19de23b4d21cc257e4a8551f3cf11076e1db 100644 (file)
@@ -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);
 }
 /* }}} */