Commit 14f8dbd4 authored by Laurent Aimar's avatar Laurent Aimar

Fixed a double free on error (http interface).

parent 78851abf
...@@ -259,8 +259,6 @@ static int Open( vlc_object_t *p_this ) ...@@ -259,8 +259,6 @@ static int Open( vlc_object_t *p_this )
goto failed; goto failed;
} }
free( psz_src );
if( var_InheritBool( p_intf, "http-album-art" ) ) if( var_InheritBool( p_intf, "http-album-art" ) )
{ {
/* FIXME: we're leaking h */ /* FIXME: we're leaking h */
...@@ -277,6 +275,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -277,6 +275,7 @@ static int Open( vlc_object_t *p_this )
p_sys->p_art_handler = h->p_handler; p_sys->p_art_handler = h->p_handler;
} }
free( psz_src );
return VLC_SUCCESS; return VLC_SUCCESS;
failed: failed:
......
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