Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
28bb0054 by Lyndon Brown at 2021-12-31T12:25:26+00:00
avahi: fix invalid free

- - - - -


1 changed file:

- modules/services_discovery/avahi.c


Changes:

=====================================
modules/services_discovery/avahi.c
=====================================
@@ -176,7 +176,10 @@ static void add_renderer( const char *psz_protocol, const 
char *psz_name,
         model = get_string_list_value( txt, "md" );
 
         if( asprintf( &uri, "%s://%s:%u", psz_protocol, psz_addr, i_port ) < 0 
)
+        {
+            uri = NULL;
             goto error;
+        }
 
         extra_uri = renderer_flags & VLC_RENDERER_CAN_VIDEO ? NULL : 
"no-video";
         demux = "cc_demux";



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/28bb00548b5838b23ad74ad85f74aae58fb93302

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


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to