diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-02 00:03:44 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-02 00:03:44 +0000 |
commit | 7e77c81da9afafe28c7ef62f38e476fff698c434 (patch) | |
tree | 489346e603c4d686d36cd7af847318684d5a8d40 /tables | |
parent | 45e611cb44e5661ee71fc70999ee4c8ba2529970 (diff) | |
download | libapr-7e77c81da9afafe28c7ef62f38e476fff698c434.tar.gz |
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
Diffstat (limited to 'tables')
-rw-r--r-- | tables/apr_hash.c | 4 |
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; |