]> git.sesse.net Git - vlc/commitdiff
shoutcast: Fix some leaks.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 10 Dec 2009 17:34:15 +0000 (18:34 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 10 Dec 2009 22:02:23 +0000 (23:02 +0100)
modules/demux/playlist/shoutcast.c

index 161156f6788c61b91dec173fa6a07eca62439a31..b6935c83709e0bb1173b4b4fd0dec440641a905a 100644 (file)
@@ -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 );