]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
crypto: add missing free of certs array
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 29 Oct 2025 18:06:54 +0000 (18:06 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 3 Nov 2025 10:45:55 +0000 (10:45 +0000)
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/tlscredsx509.c

index 847fd4d9facbb02586865a6b23fb570caa8e39d9..75c70af522d3ae7d26d0b2bd4d99037a0e21dd36 100644 (file)
@@ -550,6 +550,7 @@ qcrypto_tls_creds_x509_sanity_check(QCryptoTLSCredsX509 *creds,
     for (i = 0; i < ncerts; i++) {
         gnutls_x509_crt_deinit(certs[i]);
     }
+    g_free(certs);
     for (i = 0; i < ncacerts; i++) {
         gnutls_x509_crt_deinit(cacerts[i]);
     }