From 8d834912c7e19d4142f15a31ab747915d6ca1f54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Sun, 5 Oct 2008 15:37:09 +0200 Subject: [PATCH] Fix potential memleak (CID 198) --- src/input/meta.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input/meta.c b/src/input/meta.c index aa716f0690..b8ab5aca1e 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 ); -- 2.20.1