server: Free RSA creds on close

pull/96/head
Andri Yngvason 2023-10-03 20:45:20 +00:00
parent 4be95d6938
commit f8f49196e8
1 changed files with 5 additions and 0 deletions

View File

@ -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);