Permalink
Browse files

Fix a memory leak.

  • Loading branch information...
1 parent 6c29c9e commit 180e2464c9c884b844c5578c3525864d0781f652 @FooBarWidget FooBarWidget committed Jun 19, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 ext/apache2/Bucket.cpp
@@ -144,6 +144,8 @@ bucket_read(apr_bucket *bucket, const char **str, apr_size_t *len, apr_read_type
delete data;
bucket->data = NULL;
+ apr_bucket_free(buf);
+
bucket = apr_bucket_immortal_make(bucket, "", 0);
*str = (const char *) bucket->data;
*len = 0;

0 comments on commit 180e246

Please sign in to comment.