mod_case_filter_in: fix memory leak.
Each ap_malloc()ed buffer should be free()d with its bucket.
Submitted by: ylavic
Reviewed by: ylavic, jorton, covener
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1885140 13f79535-47bb-0310-9956-
ffa450edef68
buf[n] = apr_toupper(data[n]);
}
- pbktOut = apr_bucket_heap_create(buf, len, 0, c->bucket_alloc);
+ pbktOut = apr_bucket_heap_create(buf, len, free, c->bucket_alloc);
APR_BRIGADE_INSERT_TAIL(pbbOut, pbktOut);
apr_bucket_delete(pbktIn);
}