]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use cmd->temp_pool for temp allocations during configuration.
authorPaul Querna <pquerna@apache.org>
Sun, 7 Dec 2008 06:23:04 +0000 (06:23 +0000)
committerPaul Querna <pquerna@apache.org>
Sun, 7 Dec 2008 06:23:04 +0000 (06:23 +0000)
Suggested by: Takashi Sato <takashi lans-tv.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@724092 13f79535-47bb-0310-9956-ffa450edef68

modules/cluster/mod_heartbeat.c
modules/cluster/mod_heartmonitor.c

index 1f978db645722bf3870f6c4ac54f72e8d5a866a7..c2562db17b1de5cbf3554f96b6f9cc1152f14637 100644 (file)
@@ -308,7 +308,7 @@ static const char *cmd_hb_address(cmd_parms *cmd,
         return "HeartbeatAddress: May only be specified once.";
     }
 
-    rv = apr_parse_addr_port(&host_str, &scope_id, &port, addr, p);
+    rv = apr_parse_addr_port(&host_str, &scope_id, &port, addr, cmd->temp_pool);
 
     if (rv) {
         return "HeartbeatAddress: Unable to parse address.";
@@ -329,14 +329,14 @@ static const char *cmd_hb_address(cmd_parms *cmd,
         return "HeartbeatAddress: apr_sockaddr_info_get failed.";
     }
 
-    rv = apr_temp_dir_get(&tmpdir, p);
+    rv = apr_temp_dir_get(&tmpdir, cmd->temp_pool);
     if (rv) {
         return "HeartbeatAddress: unable to find temp directory.";
     }
 
-    path = apr_pstrcat(p, tmpdir, "/hb-tmp.XXXXXX", NULL);
+    path = apr_pstrcat(cmd->temp_pool, tmpdir, "/hb-tmp.XXXXXX", NULL);
 
-    rv = apr_file_mktemp(&ctx->lockf, path, 0, p);
+    rv = apr_file_mktemp(&ctx->lockf, path, 0, cmd->temp_pool);
 
     if (rv) {
         return "HeartbeatAddress: unable to allocate temp file.";
index d54d6e9ca47f7cd305ad465da3a5f5ab2b1439fb..77552587a8ae35a162e7a55cd70347b4a1577e00 100644 (file)
@@ -541,7 +541,7 @@ static const char *cmd_hm_listen(cmd_parms *cmd,
         return "HeartbeatListen: May only be specified once.";
     }
 
-    rv = apr_parse_addr_port(&host_str, &scope_id, &port, mcast_addr, p);
+    rv = apr_parse_addr_port(&host_str, &scope_id, &port, mcast_addr, cmd->temp_pool);
 
     if (rv) {
         return "HeartbeatListen: Unable to parse multicast address.";