[vlc-devel] commit: shoutcast: Fix some leaks. (Pierre d'Herbemont )
git version control
git at videolan.org
Thu Dec 10 23:02:48 CET 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Dec 10 18:34:15 2009 +0100| [3f7cfc2b30b25121da4d18067ef713dc9cc39515] | committer: Pierre d'Herbemont
shoutcast: Fix some leaks.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f7cfc2b30b25121da4d18067ef713dc9cc39515
---
modules/demux/playlist/shoutcast.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/demux/playlist/shoutcast.c b/modules/demux/playlist/shoutcast.c
index 161156f..b6935c8 100644
--- a/modules/demux/playlist/shoutcast.c
+++ b/modules/demux/playlist/shoutcast.c
@@ -139,6 +139,7 @@ error:
#define GET_VALUE( a ) \
if( !strcmp( psz_attrname, #a ) ) \
{ \
+ free(psz_ ## a); \
psz_ ## a = psz_attrvalue; \
}
/* <genrelist>
@@ -413,6 +414,7 @@ static int DemuxStation( demux_t *p_demux, xml_reader_t *p_xml_reader,
input_item_SetRating( p_input, psz_rt );
input_item_AddSubItem( p_current_input, p_input );
vlc_gc_decref( p_input );
+ FREENULL( psz_base );
FREENULL( psz_name );
FREENULL( psz_mt );
FREENULL( psz_id );
More information about the vlc-devel
mailing list