From c02eab32eaf92c181922a38c5542eeb0fdf9653b Mon Sep 17 00:00:00 2001 From: Konstantin Goncharik Date: Fri, 11 Oct 2024 19:50:41 +0700 Subject: [PATCH] FIX(client): Fix memory leak in CertWizard::importCert BIO_set_close with BIO_NOCLOSE argument leads to memory leaks here Closes #6603 --- src/mumble/Cert.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mumble/Cert.cpp b/src/mumble/Cert.cpp index 9daabeaa87..8f28f7cd92 100644 --- a/src/mumble/Cert.cpp +++ b/src/mumble/Cert.cpp @@ -437,7 +437,6 @@ Settings::KeyPair CertWizard::importCert(QByteArray data, const QString &pw) { int ret = 0; mem = BIO_new_mem_buf(data.data(), static_cast< int >(data.size())); - Q_UNUSED(BIO_set_close(mem, BIO_NOCLOSE)); pkcs = d2i_PKCS12_bio(mem, nullptr); if (pkcs) { ret = PKCS12_parse(pkcs, nullptr, &pkey, &x509, &certs);