From 7e77c81da9afafe28c7ef62f38e476fff698c434 Mon Sep 17 00:00:00 2001 From: wrowe Date: Thu, 2 Aug 2001 00:03:44 +0000 Subject: Quell a slow leak. The iterator's allocation is NOT pertinant to the hash! git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62076 13f79535-47bb-0310-9956-ffa450edef68 --- tables/apr_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tables') 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; -- cgit v1.2.1