[openssl-users] Memory leak issue

Rajeswari K raji.kotamraju at gmail.com
Thu Mar 26 13:15:29 UTC 2015

Hello Openssl Users,

Currently we are facing a memory leak issue in the following scenario.

We are allocating dynamic memory to a appctx and we are setting this appctx
to the session using the function

My understanding is that, this appctx will be updated as part of ex_data
present at SSL_SESSION data structure.

As part of SSL_SESSION_free(), i see that crypto_free_ex_data() gets
called. But, we are seeing that appctx is not being free'd through openssl.

Is there any function do i need to update for free_func() to get this
appctx to be free'd?

And my understanding is if SSL Caching is present, this ex_data also gets
saved as part of SSL_SESSION data. Hence, at application we are unable to
judge when to free this appctx. Hence, we would like to get this free'd
when openssl frees its SSL Session.

Please provide me appropriate function to call/to set at/to openssl to get
this appctx free'd by openssl when SSL_Session is being freed.

Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20150326/e91a5716/attachment-0001.html>

More information about the openssl-users mailing list