]> git.sesse.net Git - vlc/commitdiff
Fix potential memleak (CID 198)
authorRémi Duraffort <ivoire@videolan.org>
Sun, 5 Oct 2008 13:37:09 +0000 (15:37 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 5 Oct 2008 13:37:09 +0000 (15:37 +0200)
src/input/meta.c

index aa716f0690f72d3e5b69f5c32ae3f064bd470785..b8ab5aca1e5100928b2274105f8774fe8f7fc174 100644 (file)
@@ -506,7 +506,10 @@ void input_ExtractAttachmentAndCacheArt( input_thread_t *p_input )
         psz_title = p_item->psz_name;
 
     if( (!psz_artist || !psz_album ) && !psz_title )
+    {
+        free( psz_type );
         return;
+    }
 
     ArtCacheGetDirPath( p_input, psz_filename, psz_title, psz_artist, psz_album );
     ArtCacheCreateDir( psz_filename );