]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
follow-up to r1554161, r1554168, r1554170, r1554175, r1554188, and r1554195:
authorJeff Trawick <trawick@apache.org>
Wed, 15 Jan 2014 17:42:39 +0000 (17:42 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 15 Jan 2014 17:42:39 +0000 (17:42 +0000)
axe unnecessary initialization/pool allocation

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

modules/aaa/mod_authnz_ldap.c
modules/aaa/mod_authz_dbd.c
modules/aaa/mod_authz_dbm.c
modules/aaa/mod_authz_groupfile.c
modules/aaa/mod_authz_host.c
modules/aaa/mod_authz_user.c

index 86eb958052c4650749e0ecaba867499632122c96..4ed6c21b8a452510bef93f9edcbe34b672c905ee 100644 (file)
@@ -1400,7 +1400,7 @@ static const char *ldap_parse_config(cmd_parms *cmd, const char *require_line,
                                      const void **parsed_require_line)
 {
     const char *expr_err = NULL;
-    ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+    ap_expr_info_t *expr;
 
     expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
             &expr_err, NULL);
index 8da0ccaec340fc501d655886bd367303c9ab5263..30749914a7d7778e4479f79cf4cb2585240144fd 100644 (file)
@@ -327,7 +327,7 @@ static const char *dbd_parse_config(cmd_parms *cmd, const char *require_line,
                                      const void **parsed_require_line)
 {
     const char *expr_err = NULL;
-    ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+    ap_expr_info_t *expr;
 
     expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
             &expr_err, NULL);
index 4e132e0f29f88c5ee3d4a0ec2082bfd3237cad88..843d9a8e43f9c6cf68714541afdc1a9cf6c78aaf 100644 (file)
@@ -279,7 +279,7 @@ static const char *dbm_parse_config(cmd_parms *cmd, const char *require_line,
                                      const void **parsed_require_line)
 {
     const char *expr_err = NULL;
-    ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+    ap_expr_info_t *expr;
 
     expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
             &expr_err, NULL);
index 685309f035951a6f7fbc0657ebd02d80b9eb1a1b..261f2fb40f72e5fdf7cd6f06dff12791f452181f 100644 (file)
@@ -273,7 +273,7 @@ static const char *groupfile_parse_config(cmd_parms *cmd, const char *require_li
                                           const void **parsed_require_line)
 {
     const char *expr_err = NULL;
-    ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+    ap_expr_info_t *expr;
 
     expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
             &expr_err, NULL);
index f5f1a0ddbca3194598a985b537b1866cd6983e8d..83fc6e6c71a3faace71b33c0355e8c46b64bd07d 100644 (file)
@@ -228,7 +228,7 @@ static const char *host_parse_config(cmd_parms *cmd, const char *require_line,
                                      const void **parsed_require_line)
 {
     const char *expr_err = NULL;
-    ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+    ap_expr_info_t *expr;
 
     expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
             &expr_err, NULL);
index 0f45395ed81e7f21444cf4bacb9ec1ac353ba193..881f77f1109a2f10c7dfe5b990890aca1bfaed27 100644 (file)
@@ -97,7 +97,7 @@ static const char *user_parse_config(cmd_parms *cmd, const char *require_line,
                                      const void **parsed_require_line)
 {
     const char *expr_err = NULL;
-    ap_expr_info_t *expr = apr_pcalloc(cmd->pool, sizeof(*expr));
+    ap_expr_info_t *expr;
 
     expr = ap_expr_parse_cmd(cmd, require_line, AP_EXPR_FLAG_STRING_RESULT,
             &expr_err, NULL);