instead of bucket->destroy(). bucket->destroy() wasn't being
called correctly and also we were leaking the storage for the
bucket itself since bucket->destroy() doesn't free the ap_bucket.
Submitted by: Ryan Bloom, Jeff Trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86544
13f79535-47bb-0310-9956-
ffa450edef68
while (1) {
while (e->length == 0) {
AP_BUCKET_REMOVE(e);
- e->destroy(e);
+ ap_bucket_destroy(e);
ap_get_brigade(c->input_filters, b);
if (!AP_BRIGADE_EMPTY(b)) {
apr_cpystrn(pos, temp, length + 1);
AP_BUCKET_REMOVE(e);
- e->destroy(e);
+ ap_bucket_destroy(e);
}
c->input_data = b;
e = AP_BRIGADE_FIRST(b);
ap_bucket *e = b;
b = AP_BUCKET_NEXT(e);
AP_BUCKET_REMOVE(e);
- e->destroy(e);
+ ap_bucket_destroy(e);
}
} while (AP_BRIGADE_EMPTY(r->connection->input_data));
memcpy(buffer, tempbuf, len_to_read);
AP_BUCKET_REMOVE(b);
- b->destroy(b);
+ ap_bucket_destroy(b);
r->read_length += len_to_read;
r->remaining -= len_to_read;