From d95066af14e9d4a8260a54fd47c3294c57130a7b Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Sat, 20 Feb 2021 20:48:29 -0500 Subject: Fix memory leak. couriertls is a separate process anyway, so this seems to be a nothing-burger. --- tcpd/libcouriergnutls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcpd/libcouriergnutls.c b/tcpd/libcouriergnutls.c index 5fc0ef9..1b4bfe2 100644 --- a/tcpd/libcouriergnutls.c +++ b/tcpd/libcouriergnutls.c @@ -1046,6 +1046,7 @@ static int get_server_cert(gnutls_session_t session, { if (ssl->ctx->certfile) nonsslerror(&ssl->info_cpy, ssl->ctx->certfile); + free(vhost_buf); return 0; } @@ -1053,6 +1054,7 @@ static int get_server_cert(gnutls_session_t session, free(certfilename); if (keyfilename) free(keyfilename); + free(vhost_buf); return rc; } -- cgit v1.2.3