From f73cbb79498f0bc4393e4ae2030e8fb49c8ae025 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sat, 23 Oct 2010 16:38:03 +0000 Subject: [PATCH] Clarify usage of ap_pregcomp/ap_pregfree git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1026642 13f79535-47bb-0310-9956-ffa450edef68 --- include/httpd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/httpd.h b/include/httpd.h index c275132d26..7e3920182c 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -1706,7 +1706,8 @@ AP_DECLARE(char *) ap_pbase64decode(apr_pool_t *p, const char *bufcoded); 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_pool_t *p, const char *pattern, * 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); -- 2.40.0