diff -Naur fwupd-2.1.8.orig/plugins/mtd/fu-mtd-device.c fwupd-2.1.8/plugins/mtd/fu-mtd-device.c --- fwupd-2.1.8.orig/plugins/mtd/fu-mtd-device.c 2026-09-24 19:09:42.000000000 +0900 +++ fwupd-2.1.8/plugins/mtd/fu-mtd-device.c 2026-10-18 18:53:29.921550920 +0900 @@ -632,7 +632,8 @@ if (mtd_type != NULL) mtd_type_safe = fu_strstrip(mtd_type); - g_set_str(&priv->mtd_type, mtd_type_safe); + g_free(priv->mtd_type); + priv->mtd_type = g_strdup(mtd_type_safe); } static gboolean