[vlc-commits] fsstorage: Fix leak

Hugo Beauzée-Luyssen git at videolan.org
Mon Feb 15 12:17:46 CET 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 15 11:57:10 2016 +0100| [d03a18d64d19cb0625fc5e4ca55552e140a1be85] | committer: Hugo Beauzée-Luyssen

fsstorage: Fix leak

cid #1313788

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

 modules/misc/addons/fsstorage.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/misc/addons/fsstorage.c b/modules/misc/addons/fsstorage.c
index dad976b5..1b30486 100644
--- a/modules/misc/addons/fsstorage.c
+++ b/modules/misc/addons/fsstorage.c
@@ -401,8 +401,8 @@ static int InstallFile( addons_storage_t *p_this, const char *psz_downloadlink,
         *++psz_buf = '\0';
         /* ensure directory exists */
         if( !EMPTY_STR( psz_path ) ) recursive_mkdir( VLC_OBJECT(p_this), psz_path );
-        free( psz_path );
     }
+    free( psz_path );
 
     p_destfile = vlc_fopen( psz_dest, "w" );
     if( !p_destfile )



More information about the vlc-commits mailing list