*newch = (unsigned char *) ap_palloc(r->pool, n);
rv = ap_bread(bout, *newch, n, &n);
if (n == 0) {
- ap_destroy_context(sub_context);
+ ap_destroy_pool(sub_context);
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r,
MODNAME ": read failed %s", r->filename);
return -1;
}
- ap_destroy_context(sub_context);
+ ap_destroy_pool(sub_context);
return n;
}
}
pthread_mutex_lock(&thread_pool_parent_mutex);
- ap_destroy_context(tpool);
+ ap_destroy_pool(tpool);
pthread_mutex_unlock(&thread_pool_parent_mutex);
pthread_mutex_lock(&worker_thread_count_mutex);
worker_thread_count--;