]> granicus.if.org Git - apache/commitdiff
Delay some memory allocation in order to save 272 bytes in the 'request' memory pool...
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 20 Aug 2016 15:50:22 +0000 (15:50 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 20 Aug 2016 15:50:22 +0000 (15:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757010 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_status.c

index 005bf046f2b093034fb769cab9145f8362f3452f..647c930ae2ee8d4745461cc36926e3f56488c924 100644 (file)
@@ -195,7 +195,7 @@ static int status_handler(request_rec *r)
     long req_time;
     int short_report;
     int no_table_report;
-    worker_score *ws_record = apr_palloc(r->pool, sizeof *ws_record);
+    worker_score *ws_record;
     process_score *ps_record;
     char *stat_buffer;
     pid_t *pid_buffer, worker_pid;
@@ -293,6 +293,8 @@ static int status_handler(request_rec *r)
         }
     }
 
+    ws_record = apr_palloc(r->pool, sizeof *ws_record);
+    
     for (i = 0; i < server_limit; ++i) {
 #ifdef HAVE_TIMES
         clock_t proc_tu = 0, proc_ts = 0, proc_tcu = 0, proc_tcs = 0;