commit 53fec1c213590314369868abc2768f155f6f6938
parent dd9aadce4ccb6517fac420b241e19834bec84174
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 22 Oct 2020 16:52:15 +0300
daemon.c: fixed leaked on error GnuTLS resource
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -2563,6 +2563,7 @@ new_connection_prepare_ (struct MHD_Daemon *daemon,
"Failed to setup TLS credentials: unknown credential type %d.\n"),
daemon->cred_type);
#endif
+ gnutls_deinit (connection->tls_session);
MHD_socket_close_chk_ (client_socket);
MHD_ip_limit_del (daemon,
addr,