]> git.sesse.net Git - vlc/blobdiff - modules/services_discovery/podcast.c
Services discoveries: check memory allocation
[vlc] / modules / services_discovery / podcast.c
index f0b33c331ca6cf064f57d15ce24db0402c40723e..50efcc888610025a56214e18174049b802e5e143 100644 (file)
@@ -106,6 +106,8 @@ static int Open( vlc_object_t *p_this )
     services_discovery_t *p_sd = ( services_discovery_t* )p_this;
     services_discovery_sys_t *p_sys  = malloc(
                                     sizeof( services_discovery_sys_t ) );
+    if( !p_sys )
+        return VLC_ENOMEM;
 
     p_sys->i_urls = 0;
     p_sys->ppsz_urls = NULL;