diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2001-08-02 00:03:44 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2001-08-02 00:03:44 +0000 |
commit | 8efd8b469a8e67d64662a54d97e20f475579cb0b (patch) | |
tree | 489346e603c4d686d36cd7af847318684d5a8d40 /tables | |
parent | fe8a12a86dd9d629a3f2da4869989336e991cde4 (diff) | |
download | apr-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.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; |