Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 43125 invoked from network); 23 Oct 2010 16:39:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Oct 2010 16:39:03 -0000 Received: (qmail 8902 invoked by uid 500); 23 Oct 2010 16:39:03 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 8825 invoked by uid 500); 23 Oct 2010 16:39:03 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 8818 invoked by uid 99); 23 Oct 2010 16:39:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Oct 2010 16:39:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Oct 2010 16:39:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DAA0C2388A4B; Sat, 23 Oct 2010 16:38:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1026642 - /httpd/httpd/trunk/include/httpd.h Date: Sat, 23 Oct 2010 16:38:03 -0000 To: cvs@httpd.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101023163803.DAA0C2388A4B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sf Date: Sat Oct 23 16:38:03 2010 New Revision: 1026642 URL: http://svn.apache.org/viewvc?rev=1026642&view=rev Log: Clarify usage of ap_pregcomp/ap_pregfree Modified: httpd/httpd/trunk/include/httpd.h Modified: httpd/httpd/trunk/include/httpd.h URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/httpd.h?rev=1026642&r1=1026641&r2=1026642&view=diff ============================================================================== --- httpd/httpd/trunk/include/httpd.h (original) +++ httpd/httpd/trunk/include/httpd.h Sat Oct 23 16:38:03 2010 @@ -1706,7 +1706,8 @@ AP_DECLARE(char *) ap_pbase64decode(apr_ AP_DECLARE(char *) ap_pbase64encode(apr_pool_t *p, char *string); /** - * Compile a regular expression to be used later + * Compile a regular expression to be used later. The regex is freed when + * the pool is destroyed. * @param p The pool to allocate from * @param pattern the regular expression to compile * @param cflags The bitwise or of one or more of the following: @@ -1724,6 +1725,8 @@ AP_DECLARE(ap_regex_t *) ap_pregcomp(apr * Free the memory associated with a compiled regular expression * @param p The pool the regex was allocated from * @param reg The regular expression to free + * @note This function is only necessary if the regex should be cleaned + * up before the pool */ AP_DECLARE(void) ap_pregfree(apr_pool_t *p, ap_regex_t *reg);