Signed-off-by: Markus Armbruster <arm...@redhat.com> --- memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/memory.c b/memory.c index 0f4fdc7..b65c785 100644 --- a/memory.c +++ b/memory.c @@ -894,10 +894,10 @@ void memory_region_init(MemoryRegion *mr, if (name) { char *escaped_name = memory_region_escape_name(name); - char *name_array = g_strdup_printf("%s[*]", escaped_name); - object_property_add_child(owner, name_array, OBJECT(mr), &error_abort); + char *propname = object_gen_new_property_name(owner, escaped_name); + object_property_add_child(owner, propname, OBJECT(mr), &error_abort); object_unref(OBJECT(mr)); - g_free(name_array); + g_free(propname); g_free(escaped_name); } } -- 1.9.3