diff options
| author | Sam Varshavchik | 2021-02-20 20:48:29 -0500 |
|---|---|---|
| committer | Sam Varshavchik | 2021-02-20 20:49:23 -0500 |
| commit | d95066af14e9d4a8260a54fd47c3294c57130a7b (patch) | |
| tree | d6293407889cf29a307a717f0104d2d1d97fa141 | |
| parent | bf46f654b0f0b0800c8583cf98bdb9f38aa056a7 (diff) | |
| download | courier-libs-d95066af14e9d4a8260a54fd47c3294c57130a7b.tar.bz2 | |
Fix memory leak.
couriertls is a separate process anyway, so this seems to be a nothing-burger.
| -rw-r--r-- | tcpd/libcouriergnutls.c | 2 |
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; } |
