[vlc-commits] securetransport: fix mem leak

Felix Paul Kühne git at videolan.org
Fri Jan 24 18:07:14 CET 2020


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Fri Jan 24 17:54:35 2020 +0100| [eef5d45135ceeb4708c05aa80d0ddb86f6b99e21] | committer: Felix Paul Kühne

securetransport: fix mem leak

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

 modules/misc/securetransport.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/misc/securetransport.c b/modules/misc/securetransport.c
index 8a40756557..fe24951691 100644
--- a/modules/misc/securetransport.c
+++ b/modules/misc/securetransport.c
@@ -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 {



More information about the vlc-commits mailing list