[vlc-devel] [PATCH 05/11] playlist/directory: add missing return check
Thomas Guillem
thomas at gllm.fr
Mon Apr 4 10:22:30 CEST 2016
On Sat, Apr 2, 2016, at 15:43, Rémi Denis-Courmont wrote:
> On Friday 01 April 2016 10:31:04 Thomas Guillem wrote:
> > ---
> > modules/demux/playlist/directory.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/modules/demux/playlist/directory.c
> > b/modules/demux/playlist/directory.c index e357952..b57f9db 100644
> > --- a/modules/demux/playlist/directory.c
> > +++ b/modules/demux/playlist/directory.c
> > @@ -153,6 +153,8 @@ static int Demux( demux_t *p_demux )
> >
> > p_input = GetCurrentItem( p_demux );
> > p_node = input_item_node_Create( p_input );
> > + if( p_node == NULL )
> > + return VLC_ENOMEM;
> > p_node->b_can_loop = p_demux->p_sys->b_dir_can_loop;
> > input_item_Release(p_input);
>
> Leaks
Indeed.
>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list