[vlc-devel] commit: Fix potential memleak (CID 198) ( Rémi Duraffort )
git version control
git at videolan.org
Sun Oct 5 15:38:21 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Oct 5 15:37:09 2008 +0200| [8d834912c7e19d4142f15a31ab747915d6ca1f54] | committer: Rémi Duraffort
Fix potential memleak (CID 198)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d834912c7e19d4142f15a31ab747915d6ca1f54
---
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 aa716f0..b8ab5ac 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