[vlc-commits] gnutls: memory leak
Rémi Denis-Courmont
git at videolan.org
Mon Feb 18 21:25:26 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Feb 18 22:15:10 2013 +0200| [ff4c8fdf9e14fb653814370c3e8af4551104511b] | committer: Rémi Denis-Courmont
gnutls: memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff4c8fdf9e14fb653814370c3e8af4551104511b
---
modules/misc/gnutls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index e470280..3a0bd34 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -446,7 +446,7 @@ static int gnutls_HandshakeAndValidate (vlc_tls_t *session, const char *host,
val = gnutls_CertSearch (session, host, service, data);
}
error:
- gnutls_x509_crt_init (&cert);
+ gnutls_x509_crt_deinit (cert);
return val ? -1 : 0;
}
More information about the vlc-commits
mailing list