[vlc-commits] bd: memory leak
Rémi Denis-Courmont
git at videolan.org
Sat Aug 22 09:20:59 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 22 10:20:51 2015 +0300| [76530ab064ca9cc5dd38ede8ec952f3fb2016bcd] | committer: Rémi Denis-Courmont
bd: memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=76530ab064ca9cc5dd38ede8ec952f3fb2016bcd
---
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 baafe30..76e4998 100644
--- a/modules/access/bd/bd.c
+++ b/modules/access/bd/bd.c
@@ -1141,7 +1141,7 @@ static void LoadClpi( 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_clpi_t *p_clpi = malloc( sizeof(*p_clpi) );
@@ -1189,8 +1189,8 @@ static void LoadClpi( 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_clpi );
+ block_Release( p_block );
}
/* */
More information about the vlc-commits
mailing list