[vlc-commits] commit: Fixed a double free on error (http interface). (Laurent Aimar )
git at videolan.org
git at videolan.org
Mon Nov 1 15:16:13 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Oct 31 13:31:50 2010 +0100| [14f8dbd47bd07de8b336d0d4c1747757a14d0737] | committer: Laurent Aimar
Fixed a double free on error (http interface).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14f8dbd47bd07de8b336d0d4c1747757a14d0737
---
modules/control/http/http.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/control/http/http.c b/modules/control/http/http.c
index 7251f0c..0cb9c26 100644
--- a/modules/control/http/http.c
+++ b/modules/control/http/http.c
@@ -259,8 +259,6 @@ static int Open( vlc_object_t *p_this )
goto failed;
}
- free( psz_src );
-
if( var_InheritBool( p_intf, "http-album-art" ) )
{
/* FIXME: we're leaking h */
@@ -277,6 +275,7 @@ static int Open( vlc_object_t *p_this )
p_sys->p_art_handler = h->p_handler;
}
+ free( psz_src );
return VLC_SUCCESS;
failed:
More information about the vlc-commits
mailing list