https://bz.apache.org/bugzilla/show_bug.cgi?id=62892

--- Comment #8 from Sander Benschop <sander.bensc...@42.nl> ---
Ok, I will try again to build the code from SVN and see if it makes a
difference, but right now the server still runs out of memory.

I have added the three lines of code you suggested in this place:

free_bio:
    BIO_free(bio_req);

free_req:
    if(apr_sock && ok) /* if ok == 0 we have already closed the socket */
        apr_socket_close(apr_sock);

    apr_pool_destroy(mp);

    sk_OCSP_CERTID_free(ids);
    OCSP_REQUEST_free(ocsp_req);

    // Manually added code
    OPENSSL_free(hostname);
    OPENSSL_free(c_port);
    OPENSSL_free(path);
    // End manually added code
end:
    return ocsp_resp;

It seems that this does have a positive effect on the memory usage, it now took
4,5 hours to run out of memory rather than 3 but the end result is still the
same. I will report back when I've tried the exact commit in SVN.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to