[vlc-commits] [Git][videolan/vlc][master] rd: fix invalid free

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Mon Jan 3 08:20:08 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
854cd9e5 by Lyndon Brown at 2022-01-02T20:37:21+00:00
rd: fix invalid free

- - - - -


1 changed file:

- src/misc/renderer_discovery.c


Changes:

=====================================
src/misc/renderer_discovery.c
=====================================
@@ -86,7 +86,10 @@ vlc_renderer_item_new(const char *psz_type, const char *psz_name,
                  url.psz_protocol, url.psz_host, url.i_port,
                  psz_extra_sout != NULL ? "," : "",
                  psz_extra_sout != NULL ? psz_extra_sout : "") == -1)
+    {
+        p_item->psz_sout = NULL;
         goto error;
+    }
 
     if (psz_icon_uri && (p_item->psz_icon_uri = strdup(psz_icon_uri)) == NULL)
         goto error;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/854cd9e5d9acc07a94309e9c926721fee4b99b1d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/854cd9e5d9acc07a94309e9c926721fee4b99b1d
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list