[vlc-commits] vorepository: Fix memleak

Hugo Beauzée-Luyssen git at videolan.org
Tue May 16 18:45:05 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue May 16 18:02:13 2017 +0200| [185a90ef642343982af4bdd29a149ddc0ed16480] | committer: Hugo Beauzée-Luyssen

vorepository: Fix memleak

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

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

diff --git a/modules/misc/addons/vorepository.c b/modules/misc/addons/vorepository.c
index 7fcc15b506..4d7061a4ab 100644
--- a/modules/misc/addons/vorepository.c
+++ b/modules/misc/addons/vorepository.c
@@ -512,7 +512,10 @@ static void Close(vlc_object_t *p_this)
 {
     addons_finder_t *p_finder = (addons_finder_t*) p_this;
     if ( p_finder->p_sys->psz_tempfile )
+    {
         vlc_unlink( p_finder->p_sys->psz_tempfile );
+        free( p_finder->p_sys->psz_tempfile );
+    }
     free( p_finder->p_sys );
 }
 



More information about the vlc-commits mailing list