[vlc-devel] commit: http interface: strdup memleaks (Derk-Jan Hartman )

git version control git at videolan.org
Fri Jun 19 23:37:05 CEST 2009


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Fri Jun 19 23:36:00 2009 +0200| [c766082c922c2488276397698116e9f3acc51fb6] | committer: Derk-Jan Hartman 

http interface: strdup memleaks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c766082c922c2488276397698116e9f3acc51fb6
---

 modules/control/http/util.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/modules/control/http/util.c b/modules/control/http/util.c
index 497d501..a8ff23d 100644
--- a/modules/control/http/util.c
+++ b/modules/control/http/util.c
@@ -384,51 +384,67 @@ void PlaylistListNode( intf_thread_t *p_intf, playlist_t *p_pl,
 
         psz = input_item_GetTitle( p_node->p_input );
         mvar_AppendNewVar( itm, "title", psz );
+        free( psz );
 
         psz = input_item_GetArtist( p_node->p_input );
         mvar_AppendNewVar( itm, "artist", psz );
+        free( psz );
 
         psz = input_item_GetGenre( p_node->p_input );
         mvar_AppendNewVar( itm, "genre", psz );
+        free( psz );
 
         psz = input_item_GetCopyright( p_node->p_input );
         mvar_AppendNewVar( itm, "copyright", psz );
+        free( psz );
 
         psz = input_item_GetAlbum( p_node->p_input );
         mvar_AppendNewVar( itm, "album", psz );
+        free( psz );
 
         psz = input_item_GetTrackNum( p_node->p_input );
         mvar_AppendNewVar( itm, "track", psz );
+        free( psz );
 
         psz = input_item_GetDescription( p_node->p_input );
         mvar_AppendNewVar( itm, "description", psz );
+        free( psz );
 
         psz = input_item_GetRating( p_node->p_input );
         mvar_AppendNewVar( itm, "rating", psz );
+        free( psz );
 
         psz = input_item_GetDate( p_node->p_input );
         mvar_AppendNewVar( itm, "date", psz );
+        free( psz );
 
         psz = input_item_GetURL( p_node->p_input );
         mvar_AppendNewVar( itm, "url", psz );
+        free( psz );
 
         psz = input_item_GetLanguage( p_node->p_input );
         mvar_AppendNewVar( itm, "language", psz );
+        free( psz );
 
         psz = input_item_GetNowPlaying( p_node->p_input );
         mvar_AppendNewVar( itm, "now_playing", psz );
+        free( psz );
 
         psz = input_item_GetPublisher( p_node->p_input );
         mvar_AppendNewVar( itm, "publisher", psz );
+        free( psz );
 
         psz = input_item_GetEncodedBy( p_node->p_input );
         mvar_AppendNewVar( itm, "encoded_by", psz );
+        free( psz );
 
         psz = input_item_GetArtURL( p_node->p_input );
         mvar_AppendNewVar( itm, "art_url", psz );
+        free( psz );
 
         psz = input_item_GetTrackID( p_node->p_input );
         mvar_AppendNewVar( itm, "track_id", psz );
+        free( psz );
 
         mvar_AppendVar( s, itm );
     }




More information about the vlc-devel mailing list