]> granicus.if.org Git - apache/commitdiff
* server/main.c (main): Don't create a separate subpool for pcommands
authorJoe Orton <jorton@apache.org>
Tue, 25 Jun 2019 12:16:24 +0000 (12:16 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 25 Jun 2019 12:16:24 +0000 (12:16 +0000)
  (it had an identical lifetime to the global pool).

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

server/main.c

index ac9e5dafd2c2e124aa53c772c6046683d6cda069..c445aef4f7ead888104988ebfcaea1b7828bfb0f 100644 (file)
@@ -527,8 +527,7 @@ static void usage(process_rec *process)
     }
 #endif
 
-    apr_pool_create(&pcommands, ap_pglobal);
-    apr_pool_tag(pcommands, "pcommands");
+    pcommands = ap_pglobal;
     ap_server_pre_read_config  = apr_array_make(pcommands, 1,
                                                 sizeof(const char *));
     ap_server_post_read_config = apr_array_make(pcommands, 1,