U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Solve memory leak in OpenSSL 1.0.1c
Solve memory leak in OpenSSL 1.0.1c [message #40323] Fri, 19 July 2013 11:52 Go to next message
kasome is currently offline  kasome
Messages: 78
Registered: July 2008
Location: Taiwan
Member
Solve memory leak in OpenSSL 1.0.1c

I find this article by google,
http://clseto.mysinablog.com/index.php?op=ViewArticle&ar ticleId=3304652

Just modify the code in upp\uppsrc\Core\SSL\InitExit.icpp,

EXITBLOCK
{
CONF_modules_unload(1);
EVP_cleanup();
ENGINE_cleanup();
CRYPTO_cleanup_all_ex_data();
ERR_remove_state(0);
ERR_free_strings();

stack_st_SSL_COMP* pCOMP = SSL_COMP_get_compression_methods();
if( pCOMP ) {
sk_SSL_COMP_free( pCOMP );
}

}


Now, the memory leak is vanished.
Re: Solve memory leak in OpenSSL 1.0.1c [message #40347 is a reply to message #40323] Mon, 22 July 2013 22:19 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
OK, why not. Thanks.

Mirek
Previous Topic: Bug in Stream::Pack
Next Topic: Equivalent in U++ to STL list container
Goto Forum:
  


Current Time: Sun May 10 10:53:51 GMT+2 2026

Total time taken to generate the page: 0.00512 seconds