DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25667>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25667

Memory leak in function ssl_scache_dbm_retrieve().

           Summary: Memory leak in function ssl_scache_dbm_retrieve().
           Product: Apache httpd-2.0
           Version: 2.1-HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_ssl
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


A leak of 148 bytes happens everytime the function ssl_scache_dbm_retrieve() 
calls d2i_SSL_SESSION() because the buffer pointed to by ucpData, which is 
locally malloced in ssl_scache_dbm_retrieve is never freed.  This really adds 
up over time.

Also, since d2i_SSL_SESSION() changes the address pointed to by ucpData we 
need to save off a copy of the address in a temporary pointer so that we can 
actually free it.

There are other source files that do the same thing but I want to get input on 
this one which is causing me problems.  Attached is a patch file.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to