[Modules] mod_gnutls: does gnutls_allocate_* the counterpart gnutls_free_*

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Thu Nov 18 04:45:04 EST 2010

On Wed, Nov 17, 2010 at 8:47 PM, Hardy Griech <ntbox at mardys.de> wrote:
> Hi (Nikos),
> after extending mod_gnutls to allow TLS-PSK and some testing, I'm
> wondering if all the gnutls_allocate_* need a gnutls_free_* to avoid
> memory leaks.

They need but I think that the _allocate_ functions are in a global state,
and thus requiring free when apache exits.

> Actually there must be a leak in mod_gnutls, because my test client
> which continuously connects / transfers / disconnects makes my server
> (with mod_gnutls) consume more and more memory.

Can you use valgrind to trace the leak?


More information about the Modules mailing list