From 53dcc7fe52bd0f6334e8ecc0c93fb2bf75051205 Mon Sep 17 00:00:00 2001 From: "Eduardo Lima (Etrunko)" Date: Wed, 1 Jul 2020 10:29:24 -0300 Subject: [PATCH] foreign-menu: Avoid leaking 'name' variable in error path Signed-off-by: Eduardo Lima (Etrunko) --- src/ovirt-foreign-menu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ovirt-foreign-menu.c b/src/ovirt-foreign-menu.c index 6ee3d86..b3fc34c 100644 --- a/src/ovirt-foreign-menu.c +++ b/src/ovirt-foreign-menu.c @@ -488,6 +488,7 @@ static void ovirt_foreign_menu_set_files(OvirtForeignMenu *menu, g_object_get(it->data, "content-type", &content_type, NULL); if (content_type != OVIRT_DISK_CONTENT_TYPE_ISO) { g_debug("Ignoring %s disk which content-type is not ISO", name); + g_free(name); continue; } }