[vlc-devel] commit: Fix potential memleak (CID 198) ( Rémi Duraffort )

git version control git at videolan.org
Mon Oct 6 15:46:45 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Duraffort <ivoire at videolan.org> | Sun Oct  5 15:37:09 2008 +0200| [293500f1f7508028baf496d4d9273504daee0154] | committer: Derk-Jan Hartman 

Fix potential memleak (CID 198)
(cherry picked from commit 8d834912c7e19d4142f15a31ab747915d6ca1f54)

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

 src/input/meta.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/input/meta.c b/src/input/meta.c
index 402c991..6407e5a 100644
--- a/src/input/meta.c
+++ b/src/input/meta.c
@@ -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 );




More information about the vlc-devel mailing list