Browse Source

crypto: add missing free of certs array

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
pull/307/head
Daniel P. Berrangé 9 months ago
parent
commit
0de19c148a
  1. 1
      crypto/tlscredsx509.c

1
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]);
}

Loading…
Cancel
Save