Re: [Libosinfo] [libosinfo] loader: Fix leak in osinfo_loader_find_files()

2018-04-10 Thread Daniel P . Berrangé
On Tue, Apr 10, 2018 at 12:23:12PM +0200, Christophe Fergeau wrote: > 'tmp' is used to iterate over the list of files, so it will be NULL at > the end of the iteration, and g_list_free() will be a no-op. > The initial list is stored in 'children', so free that instead. > > Signed-off-by: Christoph

[Libosinfo] [libosinfo] loader: Fix leak in osinfo_loader_find_files()

2018-04-10 Thread Christophe Fergeau
'tmp' is used to iterate over the list of files, so it will be NULL at the end of the iteration, and g_list_free() will be a no-op. The initial list is stored in 'children', so free that instead. Signed-off-by: Christophe Fergeau --- osinfo/osinfo_loader.c | 2 +- 1 file changed, 1 insertion(+),