httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aryeh Katz" <>
Subject Re: Memory leak in experimental module - mod_case_filter_in
Date Tue, 18 Jun 2002 16:41:19 GMT
Please ignore. I didn't look at the heap_create code carefully.

> I was looking over mod_case_filter_in for some pointers on filter
> handling, and I noticed there was a memory leak in CaseFilterInFilter
> (line 149). Since apr_bucket_heap_create doesn't specify a free
> function, apr_bucket_heap_make will allocate h->base, and copy the
> data (buf) there. The buf allocated through malloc (in
> CaseFilterInFilter) never gets freed, and will leak the amount of data
> read through ap_bucket_read on every request. Since this is just an
> experimental module it's no big deal, but it probably pays to clean
> this up. Aryeh --- Aryeh Katz VASCO		

Aryeh Katz

View raw message