summaryrefslogtreecommitdiff
path: root/buckets/apr_buckets_simple.c
diff options
context:
space:
mode:
authorjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2001-08-08 05:58:15 +0000
committerjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2001-08-08 05:58:15 +0000
commit75388a9570ee8f6676af1b2afa3118f626fbacdf (patch)
treed63fdcd41ad52ab31970ba55ab3c41f237cf0171 /buckets/apr_buckets_simple.c
parent78a82ddb3c399361a8a2517a9b537371bbacd528 (diff)
downloadlibapr-util-75388a9570ee8f6676af1b2afa3118f626fbacdf.tar.gz
Move the free function pointer out of the apr_bucket_type_t and into the
apr_bucket struct itself, because the free() function operates on the apr_bucket and not the bucket's private data [which might change if we morph]. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58357 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets/apr_buckets_simple.c')
-rw-r--r--buckets/apr_buckets_simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/buckets/apr_buckets_simple.c b/buckets/apr_buckets_simple.c
index 5400e09c..d6679874 100644
--- a/buckets/apr_buckets_simple.c
+++ b/buckets/apr_buckets_simple.c
@@ -115,6 +115,7 @@ APU_DECLARE(apr_bucket *) apr_bucket_immortal_create(
apr_bucket *b = (apr_bucket *)malloc(sizeof(*b));
APR_BUCKET_INIT(b);
+ b->free = free;
return apr_bucket_immortal_make(b, buf, length);
}
@@ -152,13 +153,13 @@ APU_DECLARE(apr_bucket *) apr_bucket_transient_create(
apr_bucket *b = (apr_bucket *)malloc(sizeof(*b));
APR_BUCKET_INIT(b);
+ b->free = free;
return apr_bucket_transient_make(b, buf, length);
}
const apr_bucket_type_t apr_bucket_type_immortal = {
"IMMORTAL", 5,
apr_bucket_destroy_noop,
- free,
simple_read,
apr_bucket_setaside_noop,
apr_bucket_simple_split,
@@ -168,7 +169,6 @@ const apr_bucket_type_t apr_bucket_type_immortal = {
APU_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_transient = {
"TRANSIENT", 5,
apr_bucket_destroy_noop,
- free,
simple_read,
transient_setaside,
apr_bucket_simple_split,