summaryrefslogtreecommitdiffstats
path: root/tcpd/libcouriergnutls.c
diff options
context:
space:
mode:
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;
}