]> granicus.if.org Git - apache/commitdiff
Specify a pool for cache with apr_hash_pool_get instead of describing "pool" directly
authorTakashi Sato <takashi@apache.org>
Sat, 30 May 2009 03:36:32 +0000 (03:36 +0000)
committerTakashi Sato <takashi@apache.org>
Sat, 30 May 2009 03:36:32 +0000 (03:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@780170 13f79535-47bb-0310-9956-ffa450edef68

support/logresolve.c

index 0e6f3ac4a65f49e44046032a11dac263676c93d4..c746bb5f3721fc8c77f0bcb79f8266b096c4d67f 100644 (file)
@@ -272,7 +272,7 @@ int main(int argc, const char * const argv[])
             /* Add to cache */
             *space = '\0';
             apr_hash_set(cache, line, APR_HASH_KEY_STRING,
-                         apr_pstrdup(pool, line));
+                         apr_pstrdup(apr_hash_pool_get(cache), line));
             continue;
         }
 
@@ -293,7 +293,7 @@ int main(int argc, const char * const argv[])
                 /* Add to cache */
                 *space = '\0';
                 apr_hash_set(cache, line, APR_HASH_KEY_STRING,
-                             apr_pstrdup(pool, line));
+                             apr_pstrdup(apr_hash_pool_get(cache), line));
                 continue;
             }
         }
@@ -303,7 +303,7 @@ int main(int argc, const char * const argv[])
 
         /* Store it in the cache */
         apr_hash_set(cache, line, APR_HASH_KEY_STRING,
-                     apr_pstrdup(pool, hostname));
+                     apr_pstrdup(apr_hash_pool_get(cache), hostname));
 
         apr_pool_clear(pline);
     }