avoid memory leaks if linked with static openssl libs#1857
avoid memory leaks if linked with static openssl libs#1857yhirose merged 4 commits intoyhirose:masterfrom
Conversation
|
@RainerSchielke could you explain more about this pull request? |
|
We at Heidelberger Druckmashinen AG use the httplib with statically linked openssl libs on windows. Without calling OPENSSL_thread_stop we had many memory leaks. I found this solution in the openssl documentation at https://www.openssl.org/docs/man3.3/man3/OPENSSL_thread_stop.html NOTES |
|
@RainerSchielke thank you for the additional information. I looked at the change, and it looks |
|
In my experience, it doesn't matter if OPENSSL_thread_stop() is called multiple times. It deallocates all resources and does nothing if the resources are already deallocated in a prior call. |
|
Sounds good. I have just merged it. Thanks for your contribution! |
No description provided.