summaryrefslogtreecommitdiff
path: root/tables
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2001-08-02 00:03:44 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2001-08-02 00:03:44 +0000
commit8efd8b469a8e67d64662a54d97e20f475579cb0b (patch)
tree489346e603c4d686d36cd7af847318684d5a8d40 /tables
parentfe8a12a86dd9d629a3f2da4869989336e991cde4 (diff)
downloadapr-8efd8b469a8e67d64662a54d97e20f475579cb0b.tar.gz
Quell a slow leak. The iterator's allocation is NOT pertinant to the hash!
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62076 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tables')
-rw-r--r--tables/apr_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tables/apr_hash.c b/tables/apr_hash.c
index b21c5f33c..7871b3d20 100644
--- a/tables/apr_hash.c
+++ b/tables/apr_hash.c
@@ -155,10 +155,10 @@ APR_DECLARE(apr_hash_index_t *) apr_hash_next(apr_hash_index_t *hi)
return hi;
}
-APR_DECLARE(apr_hash_index_t *) apr_hash_first(apr_hash_t *ht)
+APR_DECLARE(apr_hash_index_t *) apr_hash_first(apr_pool_t *p, apr_hash_t *ht)
{
apr_hash_index_t *hi;
- hi = apr_palloc(ht->pool, sizeof(*hi));
+ hi = apr_palloc(p, sizeof(*hi));
hi->ht = ht;
hi->index = 0;
hi->this = NULL;