mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-21 18:03:43 +03:00
foreign-menu: Avoid leaking 'name' variable in error path
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
parent
82a0612cc8
commit
53dcc7fe52
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user