tskrtt

Simple libev based gopher server
git clone https://git.inz.fi/tskrtt/
Log | Files | Refs | README

commit 522622907f2ef50606232ed57d41f8ae9c96691f
parent 047826e7424c33a0aeed29b3afcec761d2ba8c66
Author: Santtu Lakkala <inz@inz.fi>
Date:   Wed, 19 May 2021 15:24:50 +0300

Fix tls memory leak

Diffstat:
Mclient.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/client.c b/client.c @@ -166,8 +166,10 @@ void client_close(EV_P_ struct client *c) { tasks[c->task].finish(EV_A_ c); #ifdef USE_TLS - if (c->tlsstate > PLAIN) + if (c->tlsstate > PLAIN) { tls_close(c->tlsctx); + tls_free(c->tlsctx); + } #endif ev_timer_stop(EV_A_ &c->timeout); ev_io_stop(EV_A_ &c->watcher);