foreign-menu: Avoid leaking 'name' variable in error path

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
Eduardo Lima (Etrunko) 2020-07-01 10:29:24 -03:00
parent 82a0612cc8
commit 53dcc7fe52

View File

@ -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;
}
}