From dev-return-22555-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Fri Nov 13 10:22:36 2009 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 79823 invoked from network); 13 Nov 2009 10:22:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Nov 2009 10:22:35 -0000 Received: (qmail 72182 invoked by uid 500); 13 Nov 2009 10:22:35 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 72080 invoked by uid 500); 13 Nov 2009 10:22:35 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 72072 invoked by uid 99); 13 Nov 2009 10:22:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 10:22:35 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexandruafrasinei@gmail.com designates 209.85.211.178 as permitted sender) Received: from [209.85.211.178] (HELO mail-yw0-f178.google.com) (209.85.211.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 10:22:32 +0000 Received: by ywh8 with SMTP id 8so2904639ywh.3 for ; Fri, 13 Nov 2009 02:22:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=2oKegNWHkCEaL/04tXJ0J00yCOCBg7zyRSipYwjrzDA=; b=KjRK/0Zyem5OwX6a6LUCVUqxgSq4wAK7wDXlsG3v9t02rr0JUmdNnBNtAsU1FSkRE6 FcIDVcIJGrBSapBgx7cjkEOP7rV8XrZ+30yw0R1/yTLuoK5EegtgSXmOxPZ8yhHAHKtw 0LFxe4ocCitLjF7iJ/82RJ4Gsaq9zEpVNy+bo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=kU9zG13FWiol47qQ8v18YYFzUjd/1/qB01pcug+Xj+62HlAsaJPhALO40Lpq8LHlAy oo8eIcdnjgSuSbya/AlJS2cH7fj7J3Nphi6H0J1skwx50SDQhstO0C4aXHyvLyAhTj2B UfKid6oljcpfMNF9AfqByIuBeRmARTF6z1BUo= MIME-Version: 1.0 Received: by 10.150.45.34 with SMTP id s34mr7385176ybs.274.1258107243771; Fri, 13 Nov 2009 02:14:03 -0800 (PST) In-Reply-To: <4AFC3D22.2060004@xbc.nu> References: <7789765d0911120525i1714c7fcs39b675e031428659@mail.gmail.com> <4AFC3D22.2060004@xbc.nu> Date: Fri, 13 Nov 2009 12:14:03 +0200 Message-ID: <7789765d0911130214p6f10d784n2e54430405a50f5f@mail.gmail.com> Subject: Re: apr leak windows From: Alex Afrasinei To: =?UTF-8?Q?Branko_=C4=8Cibej?= Cc: dev@apr.apache.org Content-Type: text/plain; charset=ISO-8859-1 I looked at the apr pool cleanup handlers and how they work and seems to me that calling this function after all pool cleanups handlers are done should be pretty safe. Anyway ill put the diffs in here for further reference, maybe someone can look at it at later date. Also diff for second problem. alex@alex-desktop:~/Desktop/apr-1.3.8/misc/win32$ diff -u misc.c.old misc.c --- misc.c.old 2009-11-13 11:48:45.000000000 +0200 +++ misc.c 2009-11-13 11:49:15.000000000 +0200 @@ -165,6 +165,22 @@ static HMODULE lateDllHandle[DLL_defined] = { NULL, NULL, NULL, NULL, NULL, NULL }; +apr_status_t apr_free_libs() + { + int i; + + for(i=0;i