From 567fe3dd1c29882ecc88b2cc7505d2e423afd6f7 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 26 Feb 2019 18:45:17 +0400 Subject: pica-node: fix free of anonssl handle, there was memory leak in timed out newconn-s --- PICA_nodewait.c | 1 + 1 file changed, 1 insertion(+) (limited to 'PICA_nodewait.c') diff --git a/PICA_nodewait.c b/PICA_nodewait.c index c2467e1..64ee270 100644 --- a/PICA_nodewait.c +++ b/PICA_nodewait.c @@ -173,6 +173,7 @@ static void *nodewait_connect_thread (void *arg) if (!SSL_set_fd(nw->nc.anonssl, nw->nc.sck) || 1 != SSL_connect(nw->nc.anonssl)) { SSL_free(nw->nc.anonssl); + nw->nc.anonssl = NULL; CLOSE(nw->nc.sck); ap = ap->ai_next; continue; -- cgit v1.2.1