[vlc-commits] gnutls: fix double free

Rémi Denis-Courmont git at videolan.org
Sat Jan 9 19:56:26 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan  9 20:51:19 2016 +0200| [1617e9a8b05a0a06dd6fb51e1653f4c0f5360445] | committer: Rémi Denis-Courmont

gnutls: fix double free

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1617e9a8b05a0a06dd6fb51e1653f4c0f5360445
---

 modules/misc/gnutls.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 7519629..fdb0faa 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -607,7 +607,6 @@ static int OpenServer (vlc_tls_creds_t *crd, const char *cert, const char *key)
     if (val < 0)
     {
         msg_Err (crd, "cannot load X.509 key: %s", gnutls_strerror (val));
-        gnutls_certificate_free_credentials (sys->x509_cred);
         goto error;
     }
 



More information about the vlc-commits mailing list