Commit 69cb599b authored by Laurent Aimar's avatar Laurent Aimar Committed by Rémi Duraffort

Fixed a double free on error (http interface).

(cherry picked from commit 14f8dbd47bd07de8b336d0d4c1747757a14d0737)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 98b588f7
...@@ -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