[vlc-commits] bd: memory leak
Rémi Denis-Courmont
git at videolan.org
Sat Aug 22 09:19:46 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 22 10:19:41 2015 +0300| [4dab83afe732790dc9a4bedd4c39a9d937eb7e4f] | committer: Rémi Denis-Courmont
bd: memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4dab83afe732790dc9a4bedd4c39a9d937eb7e4f
---
modules/access/bd/bd.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/access/bd/bd.c b/modules/access/bd/bd.c
index 3c7c737..baafe30 100644
--- a/modules/access/bd/bd.c
+++ b/modules/access/bd/bd.c
@@ -1047,7 +1047,7 @@ static void LoadMpls( demux_t *p_demux, const char *psz_name, int i_id )
block_t *p_block = LoadBlock( p_demux, psz_name );
if( !p_block )
- goto error;
+ return;
/* */
bd_mpls_t *p_mpls = malloc( sizeof(*p_mpls) );
@@ -1115,8 +1115,8 @@ static void LoadMpls( demux_t *p_demux, const char *psz_name, int i_id )
error:
msg_Err( p_demux, "Failed loading %s", psz_name );
- if( p_block )
- block_Release( p_block );
+ free( p_mpls );
+ block_Release( p_block );
}
/* */
More information about the vlc-commits
mailing list