]> git.sesse.net Git - vlc/commitdiff
RAOP: NULL dereference on error path
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 23 Apr 2014 16:52:46 +0000 (19:52 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 23 Apr 2014 16:52:46 +0000 (19:52 +0300)
modules/stream_out/raop.c

index d07c57f5c4c1036449d5ffd4c26eefc8c4341343..8960475ef4797cd6d43d52b8140fb82d1d62b0a7 100644 (file)
@@ -1387,10 +1387,7 @@ static int Open( vlc_object_t *p_this )
 
     p_sys = calloc( 1, sizeof( *p_sys ) );
     if ( p_sys == NULL )
-    {
-        i_err = VLC_ENOMEM;
-        goto error;
-    }
+        return VLC_ENOMEM;
 
     p_stream->pf_add = Add;
     p_stream->pf_del = Del;