[vlc-commits] RAOP: NULL dereference on error path

Rémi Denis-Courmont git at videolan.org
Wed Apr 23 18:52:59 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 23 19:52:46 2014 +0300| [d2bf0f147cebb6ee895b043cdacf58ff7cd1cdec] | committer: Rémi Denis-Courmont

RAOP: NULL dereference on error path

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

 modules/stream_out/raop.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/stream_out/raop.c b/modules/stream_out/raop.c
index d07c57f..8960475 100644
--- a/modules/stream_out/raop.c
+++ b/modules/stream_out/raop.c
@@ -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;



More information about the vlc-commits mailing list