Re: [stunnel-users] Possible memory leak with stunnel reload

2018-04-03 Thread MichaƂ Trojnara
On 04/03/2018 01:19 PM, Mark Brookes wrote:
> Hi all, we have noticed that when reloading (note reloading not
> restarting) stunnel it appears to be leaking
> between 12 and 32 bytes of memory (ish) per reload.

This is a well-known issue. Several memory structures are leaked on each
configuration file reload.

See https://www.stunnel.org/sdf_todo.html
  - Deallocate SERVICE_OPTIONS structure when the configuration file
is reloaded *and* old connections are closed.

Would you like to sponsor implementing reference counting of the
SERVICE_OPTIONS structure?

Best regards,
Mike
___
stunnel-users mailing list
stunnel-users@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users


Re: [stunnel-users] Possible memory leak with stunnel reload

2018-04-03 Thread Javier
Hi,

I confirm it using 5.44.

In my case in fact is 200KB, but as I have a big stunnel.conf file
with quite a few client services ;), hence, the difference.


Should be fixed, but, in the other hand... why continuous reloading?

I reload when I make changes and that happens from never to less than
the fingers of both hands of times in a year :P

Anyway, should be fixed, true. I thought it could be the log in the
window, but as it has a limit of lines might be something else.

Regards.
___
stunnel-users mailing list
stunnel-users@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users