390 if(ref == 0) { |
390 if(ref == 0) { |
391 if(cfg->next) { |
391 if(cfg->next) { |
392 cfg_unref(cfg->next); |
392 cfg_unref(cfg->next); |
393 } |
393 } |
394 log_ereport(LOG_VERBOSE, "destroy configuration %p", cfg); |
394 log_ereport(LOG_VERBOSE, "destroy configuration %p", cfg); |
|
395 |
|
396 CxIterator i = cxListIterator(cfg->listeners, 0); |
|
397 cx_foreach(HttpListener*, listener, i) { |
|
398 http_listener_destroy(listener); |
|
399 } |
|
400 |
395 pool_destroy(cfg->pool); |
401 pool_destroy(cfg->pool); |
396 } |
402 } |
397 } |
403 } |
398 |
404 |
399 |
405 |