summaryrefslogtreecommitdiffstats
path: root/tcpd/libcouriergnutls.c
diff options
context:
space:
mode:
authorSam Varshavchik2021-02-20 20:48:29 -0500
committerSam Varshavchik2021-02-20 20:49:23 -0500
commitd95066af14e9d4a8260a54fd47c3294c57130a7b (patch)
treed6293407889cf29a307a717f0104d2d1d97fa141 /tcpd/libcouriergnutls.c
parentbf46f654b0f0b0800c8583cf98bdb9f38aa056a7 (diff)
downloadcourier-libs-d95066af14e9d4a8260a54fd47c3294c57130a7b.tar.bz2
Fix memory leak.
couriertls is a separate process anyway, so this seems to be a nothing-burger.
Diffstat (limited to 'tcpd/libcouriergnutls.c')
-rw-r--r--tcpd/libcouriergnutls.c2
1 files changed, 2 insertions, 0 deletions
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;
}