httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1026637 - /httpd/httpd/trunk/modules/metadata/mod_version.c
Date Sat, 23 Oct 2010 16:27:52 GMT
Author: sf
Date: Sat Oct 23 16:27:52 2010
New Revision: 1026637

URL: http://svn.apache.org/viewvc?rev=1026637&view=rev
Log:
use temp_pool for version parsing, to save some memory

Modified:
    httpd/httpd/trunk/modules/metadata/mod_version.c

Modified: httpd/httpd/trunk/modules/metadata/mod_version.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/metadata/mod_version.c?rev=1026637&r1=1026636&r2=1026637&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/metadata/mod_version.c (original)
+++ httpd/httpd/trunk/modules/metadata/mod_version.c Sat Oct 23 16:27:52 2010
@@ -220,7 +220,7 @@ static const char *start_ifversion(cmd_p
         case '=':
             /* normal comparison */
             if (*arg2 != '/') {
-                compare = compare_version(apr_pstrmemdup(cmd->pool, arg2,
+                compare = compare_version(apr_pstrmemdup(cmd->temp_pool, arg2,
                                                          endp-arg2),
                                           &error);
                 if (error) {
@@ -238,8 +238,9 @@ static const char *start_ifversion(cmd_p
 
         case '~':
             /* regular expression */
-            match = match_version(cmd->pool, apr_pstrmemdup(cmd->pool, arg2,
-                                                            endp-arg2),
+            match = match_version(cmd->temp_pool,
+                                  apr_pstrmemdup(cmd->temp_pool, arg2,
+                                                 endp-arg2),
                                   &error);
             if (error) {
                 return error;
@@ -247,7 +248,7 @@ static const char *start_ifversion(cmd_p
             break;
 
         case '<':
-            compare = compare_version(apr_pstrmemdup(cmd->pool, arg2,
+            compare = compare_version(apr_pstrmemdup(cmd->temp_pool, arg2,
                                                      endp-arg2),
                                       &error);
             if (error) {
@@ -258,7 +259,7 @@ static const char *start_ifversion(cmd_p
             break;
 
         case '>':
-            compare = compare_version(apr_pstrmemdup(cmd->pool, arg2,
+            compare = compare_version(apr_pstrmemdup(cmd->temp_pool, arg2,
                                                      endp-arg2),
                                       &error);
             if (error) {



Mime
View raw message