vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Fri Nov 14 23:31:17 2014 +0100| [6b099317bf65ca10fbbe7e1c68feb07b1af3212d] | committer: Jean-Baptiste Kempf
BD: fix memleak on error path > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b099317bf65ca10fbbe7e1c68feb07b1af3212d --- modules/access/bd/bd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/access/bd/bd.c b/modules/access/bd/bd.c index 3b17f55..3c7c737 100644 --- a/modules/access/bd/bd.c +++ b/modules/access/bd/bd.c @@ -161,7 +161,10 @@ static int Open( vlc_object_t *p_this ) /* Fill p_demux field */ p_demux->p_sys = p_sys = malloc( sizeof(*p_sys) ); if( !p_sys ) + { + free( psz_base ); return VLC_EGENERIC; + } p_sys->psz_base = psz_base; p_sys->b_shortname = b_shortname; TAB_INIT( p_sys->i_mpls, p_sys->pp_mpls ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
