vlc | branch: master | Hugo Beauzée-Luyssen <h...@beauzee.fr> | Fri Jun 16 
18:05:32 2017 +0200| [8441c5dd30948f3975f3cc07fa8cf7043ee57ea3] | committer: 
Hugo Beauzée-Luyssen

addons: fsstorage: Fix leak whe nlisting installed addons

refs #18321

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

 modules/misc/addons/fsstorage.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/misc/addons/fsstorage.c b/modules/misc/addons/fsstorage.c
index d9133e4ad3..61d374eb00 100644
--- a/modules/misc/addons/fsstorage.c
+++ b/modules/misc/addons/fsstorage.c
@@ -218,7 +218,10 @@ static int ListSkins( addons_finder_t *p_finder )
             break;
 
         if ( FileBelongsToManagedAddon( p_finder, ADDON_SKIN2, psz_file ) )
+        {
+            free( psz_file );
              continue;
+        }
 
         char *psz_uri;
         if( asprintf( &psz_uri, "file://%s/%s#!/theme.xml", psz_dir, psz_file 
) >= 0)

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to