apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Steiner <peter.stei...@hugwi.ch>
Subject apr_pools leaking
Date Mon, 13 Nov 2006 12:40:46 GMT
(im not a subscriber to this list, so please CC to my address)

I have observed and opened a bug [1] in allocator_free() in apr_pools.c,
that was reported first by Brian Pane on dev@httpd [2]. Brian drafted a
patch:

+    if (index > current_free_index) {
+         current_free_index = 0;
+    }
+    else {
           current_free_index -= index;
+    }

I have not checked in depth if this patch solves the issue, I don't
think I understand every corner of apr_pools.c. Is there anyone to
review and possibly commit this patch?

Regards, Peter

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=40955
[2]
http://mail-archives.apache.org/mod_mbox/httpd-dev/200512.mbox/%3CA99202F3-A131-4656-8A68-7574C9E9062F@apache.org%3E

-- 
    _   _        Peter Steiner <peter.steiner@hugwi.ch>
  / /_/ /        Hug-Witschi AG <http://www.hugwi.ch/>
 /  _  /         Electronic Engineering
/_/ /_/  _   _   Auriedstrasse 10
   / / / / / /   CH-3178 Boesingen
  / /_/ /_/ /    Tel  +41 31 740 44 44
 /_ _ _ _ _/     Fax  +41 31 740 44 45

Mime
View raw message