[vlc-commits] addons: vorepository: Fix leak when parsing manifest
Hugo Beauzée-Luyssen
git at videolan.org
Mon Jun 19 09:32:34 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jun 16 18:05:55 2017 +0200| [f3df29e746ce2afc51f33ea3b1eef2a352bb0869] | committer: Hugo Beauzée-Luyssen
addons: vorepository: Fix leak when parsing manifest
refs #18321
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f3df29e746ce2afc51f33ea3b1eef2a352bb0869
---
modules/misc/addons/vorepository.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/misc/addons/vorepository.c b/modules/misc/addons/vorepository.c
index 4c52685f63..707f38c5e1 100644
--- a/modules/misc/addons/vorepository.c
+++ b/modules/misc/addons/vorepository.c
@@ -88,7 +88,7 @@ static int ParseManifest( addons_finder_t *p_finder, addon_entry_t *p_entry,
const char *attr, *value;
/* temp reading */
- const char *psz_filename = NULL;
+ char *psz_filename = NULL;
int i_filetype = -1;
xml_reader_t *p_xml_reader = xml_ReaderCreate( p_finder, p_stream );
@@ -184,6 +184,7 @@ static int ParseManifest( addons_finder_t *p_finder, addon_entry_t *p_entry,
}
}
/* reset temp */
+ free( psz_filename );
psz_filename = NULL;
i_filetype = -1;
}
More information about the vlc-commits
mailing list