summaryrefslogtreecommitdiff
path: root/hooks/apr_hooks.c
diff options
context:
space:
mode:
authorIssac Goldstand <issac@apache.org>2011-05-24 13:52:38 +0000
committerIssac Goldstand <issac@apache.org>2011-05-24 13:52:38 +0000
commit85879b34b0aef53b914bfb9a0a9893e7bb9606ea (patch)
tree2e7bf8964880291a7cb3854b4cce4c2cdd2b7c8e /hooks/apr_hooks.c
parent5b582e33680434599d0479ce9bf7a585b5403b1a (diff)
downloadapr-85879b34b0aef53b914bfb9a0a9893e7bb9606ea.tar.gz
https://issues.apache.org/bugzilla/show_bug.cgi?id=51256
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1127053 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'hooks/apr_hooks.c')
-rw-r--r--hooks/apr_hooks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hooks/apr_hooks.c b/hooks/apr_hooks.c
index dc3a20dfa..220456204 100644
--- a/hooks/apr_hooks.c
+++ b/hooks/apr_hooks.c
@@ -208,6 +208,10 @@ static apr_array_header_t *sort_hook(apr_array_header_t *pHooks,
}
if(apr_hook_debug_enabled)
fputc('\n',stdout);
+
+ /* destroy the pool - the sorted hooks were already copied */
+ apr_pool_destroy(p);
+
return pNew;
}