On 9/17/25 05:56, Akihiko Odaki wrote:
+char *address_space_get_path(AddressSpace *as)
+{
+ char *path;
+
+ if (!as->qom) {
+ return as->name;
You need to strdup this to allow the caller to free the result. r~
+ }
+
+ path = object_get_canonical_path(OBJECT(as));
+
+ return path ? path : g_strdup("orphan");
}
