]> git.sesse.net Git - vlc/commitdiff
input/meta.c: Fix a leak.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 22 Aug 2007 15:16:51 +0000 (15:16 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 22 Aug 2007 15:16:51 +0000 (15:16 +0000)
src/input/meta.c

index 93807386c44f6afd5805f2c4338511c7ad3d0824..657f8533178feb4f3960f93d25eb7f2ebfebaf0d 100644 (file)
@@ -356,6 +356,7 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
             snprintf( psz_filepath, MAX_PATH, "%s" DIR_SEP "%s",
                       psz_dirpath, psz_filename );
             input_item_SetArtURL( p_item, psz_filepath );
+            free( psz_filepath );
             free( psz_filename );
             closedir( p_dir );
             return VLC_SUCCESS;