On 11/11/2014 13:32, Jan Kaluža wrote: > Hi, > > latest comment in PR 53435 shows that memory leak in mod_ssl which happens > during graceful restarts can be caused by r101624. Since this commit is 11 > years > old, I wanted to ask people here, if following is still true with current > OpenSSL: > >> @@ -255,7 +255,11 @@ static apr_status_t ssl_cleanup_pre_config(void *data) >> #endif >> #endif >> ERR_remove_state(0); >> - ERR_free_strings(); >> + >> + /* Don't call ERR_free_strings here; ERR_load_*_strings only >> + * actually load the error strings once per process due to static >> + * variable abuse in OpenSSL. */ >> + >> /* >> * TODO: determine somewhere we can safely shove out diagnostics >> * (when enabled) at this late stage in the game: > > Last comment in PR 53435 showed that leaks disappeared after reverting this > patch and it does not seem to break anything here. >
I just checked the sources and this was fixed in OpenSSL 0.9.7m just over 7 years ago... Steve. -- Dr Stephen Henson. OpenSSL Software Foundation, Inc. 1829 Mount Ephraim Road Adamstown, MD 21710 +1 877-673-6775 shen...@opensslfoundation.com