From: Daniel P. Berrangé Date: Wed, 29 Oct 2025 18:06:54 +0000 (+0000) Subject: crypto: add missing free of certs array X-Git-Tag: v10.2.0-rc1~24^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0de19c148a1d1ffda8f18b342adb6133237279e4;p=thirdparty%2Fqemu.git crypto: add missing free of certs array Reviewed-by: Marc-André Lureau Signed-off-by: Daniel P. Berrangé --- diff --git a/crypto/tlscredsx509.c b/crypto/tlscredsx509.c index 847fd4d9fa..75c70af522 100644 --- a/crypto/tlscredsx509.c +++ b/crypto/tlscredsx509.c @@ -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]); }