diff options
author | Stefan Fritsch <sf@apache.org> | 2010-10-23 16:38:03 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2010-10-23 16:38:03 +0000 |
commit | f73cbb79498f0bc4393e4ae2030e8fb49c8ae025 (patch) | |
tree | 927e96d48feabbe12c38d2e47ae75a7028b89a3b /include | |
parent | 6f7f117b5d6b686b35cf22ed4405df9a8605ebf5 (diff) | |
download | httpd-f73cbb79498f0bc4393e4ae2030e8fb49c8ae025.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/httpd.h | 5 |
1 files changed, 4 insertions, 1 deletions
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); |