From f8f49196e87c370c3805a6c2724b509f41522d89 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Tue, 3 Oct 2023 20:45:20 +0000 Subject: [PATCH] server: Free RSA creds on close --- src/server.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server.c b/src/server.c index ca34f64..cdf8513 100644 --- a/src/server.c +++ b/src/server.c @@ -1973,6 +1973,11 @@ void nvnc_close(struct nvnc* self) unlink_fd_path(self->fd); close(self->fd); +#ifdef HAVE_CRYPTO + crypto_rsa_priv_key_del(self->rsa_priv); + crypto_rsa_pub_key_del(self->rsa_pub); +#endif + #ifdef ENABLE_TLS if (self->tls_creds) { gnutls_certificate_free_credentials(self->tls_creds);