Commit ff4c8fdf authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

gnutls: memory leak

parent d496ba57
...@@ -446,7 +446,7 @@ static int gnutls_HandshakeAndValidate (vlc_tls_t *session, const char *host, ...@@ -446,7 +446,7 @@ static int gnutls_HandshakeAndValidate (vlc_tls_t *session, const char *host,
val = gnutls_CertSearch (session, host, service, data); val = gnutls_CertSearch (session, host, service, data);
} }
error: error:
gnutls_x509_crt_init (&cert); gnutls_x509_crt_deinit (cert);
return val ? -1 : 0; return val ? -1 : 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment