[vlc-commits] addons: vorepository: Fix bad free

Hugo Beauzée-Luyssen git at videolan.org
Mon Jun 19 09:32:38 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jun 16 18:06:19 2017 +0200| [8da288d56c2666a49961679b4f5ee4817c28c08e] | committer: Hugo Beauzée-Luyssen

addons: vorepository: Fix bad free

refs #18321

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

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

diff --git a/modules/misc/addons/vorepository.c b/modules/misc/addons/vorepository.c
index 707f38c5e1..1cdf40b1ef 100644
--- a/modules/misc/addons/vorepository.c
+++ b/modules/misc/addons/vorepository.c
@@ -149,7 +149,7 @@ static int ParseManifest( addons_finder_t *p_finder, addon_entry_t *p_entry,
             if ( data_pointer.e_type == TYPE_STRING )
             {
                 if( data_pointer.u_data.ppsz )
-                    free( data_pointer.u_data.ppsz );
+                    free( *data_pointer.u_data.ppsz );
                 *data_pointer.u_data.ppsz = strdup( p_node );
             }
             else



More information about the vlc-commits mailing list