Skip to content
Snippets Groups Projects
Commit eef5d451 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

securetransport: fix mem leak

parent 497ece8b
No related branches found
No related tags found
No related merge requests found
......@@ -451,6 +451,7 @@ static int st_Handshake (vlc_tls_t *session,
OSStatus res = SSLCopyALPNProtocols(sys->p_context, &alpnArray);
if (res == noErr && alpnArray) {
*alp = CFArrayALPNCopyFirst(alpnArray);
CFRelease(alpnArray);
if (unlikely(*alp == NULL))
return -1;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment