Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 59885 invoked by uid 500); 9 Sep 2002 20:44:18 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 59873 invoked from network); 9 Sep 2002 20:44:17 -0000 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.0.2 Beta Date: Mon, 09 Sep 2002 14:44:18 -0600 From: "Brad Nicholes" To: Subject: memory leak in apr_bucket_alloc... Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Has anybody else noticed a memory leak when requesting pages less than 8k? If I repeatedly request pages less than 8k I have noticed that apr_bucket_alloc() calls allocator_alloc() which seems to continuously malloc() memory rather than finding it in the free list. The reason why is because allocator->max_index seems to always be 0 and contain no free nodes. If I request pages greater than 8k, allocator->max_index appears to be 2. I can't seem to figure out why the bucket allocator passed in by apr_bucket_alloc always contains a max_index of 0 on small page requests. Any ideas? thanks, Brad Brad Nicholes Senior Software Engineer Novell, Inc., the leading provider of Net business solutions http://www.novell.com