projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c27e901
)
crypto: fix leak of gnutls_dh_params_t data on credential unload
author
Daniel P. Berrange
<berrange@redhat.com>
Wed, 18 Nov 2015 14:41:35 +0000
(14:41 +0000)
committer
Daniel P. Berrange
<berrange@redhat.com>
Wed, 18 Nov 2015 14:56:58 +0000
(14:56 +0000)
The QCryptoTLSCredsX509 object was not free'ing the allocated
gnutls_dh_params_t data when unloading the credentials
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
crypto/tlscredsx509.c
patch
|
blob
|
history
diff --git
a/crypto/tlscredsx509.c
b/crypto/tlscredsx509.c
index dc46bc40f7b46b6509e94eeab6b119fc7e7c0f19..c5d1a0de30efbf6af7946aa2d125f858ce2c56a5 100644
(file)
--- a/
crypto/tlscredsx509.c
+++ b/
crypto/tlscredsx509.c
@@
-654,6
+654,10
@@
qcrypto_tls_creds_x509_unload(QCryptoTLSCredsX509 *creds)
gnutls_certificate_free_credentials(creds->data);
creds->data = NULL;
}
+ if (creds->parent_obj.dh_params) {
+ gnutls_dh_params_deinit(creds->parent_obj.dh_params);
+ creds->parent_obj.dh_params = NULL;
+ }
}