From d2bf0f147cebb6ee895b043cdacf58ff7cd1cdec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 23 Apr 2014 19:52:46 +0300 Subject: [PATCH] RAOP: NULL dereference on error path --- 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 d07c57f5c4..8960475ef4 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;