Commit 695029cd authored by Rafaël Carré's avatar Rafaël Carré

bluray: fix memleak in error path

parent bc7bf46f
......@@ -1225,8 +1225,10 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
p_sys->psz_bd_path, meta->thumbnails[0].path ) > 0 )
{
char *psz_thumburl = vlc_path2uri( psz_thumbpath, "file" );
if( unlikely(psz_thumburl == NULL) )
if( unlikely(psz_thumburl == NULL) ) {
free( psz_thumbpath );
return VLC_ENOMEM;
}
vlc_meta_SetArtURL( p_meta, psz_thumburl );
free( psz_thumburl );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment