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

gnutls: fix memory leak in error case

parent 969171b9
......@@ -785,7 +785,7 @@ static int OpenServer (vlc_object_t *obj)
vlc_tls_creds_sys_t *sys = malloc (sizeof (*sys));
if (unlikely(sys == NULL))
return VLC_ENOMEM;
goto error;
server->sys = sys;
server->add_CA = gnutls_ServerAddCA;
......@@ -849,6 +849,7 @@ static int OpenServer (vlc_object_t *obj)
free (sys);
gnutls_Deinit (obj);
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