httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27862] New: - Mod_rewrite leak memory in lookup_map
Date Mon, 22 Mar 2004 23:00:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27862>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27862

Mod_rewrite leak memory in lookup_map

           Summary: Mod_rewrite leak memory in lookup_map
           Product: Apache httpd-2.0
           Version: 2.0.46
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: shengperson@yahoo.com


If I am using rewritemap in my http.conf file, 

RewriteMap map1 txt:C:/conf/hmmolist.map
RewriteCond ${map1:%1|NONE} ^(http.*) [NC]

the "RewriteCond" in  the 2nd line above in http.conf will call lookup_map() 
which calls get_cache_string() for cached info, inside of function 
get_cache_string(), the last statment is 

return apr_pstrdup(c->pool, ce->value); 
it is needed to be changed to    return ce->value; to avoid memroy leak.

I made the change myself, I don't see memory leak.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message