qom: strdup() target property name on object_property_add_alias()
commit1590d266d96b3f9b42443d6388dfc38f527ac2d8
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 9 Apr 2015 19:57:29 +0000 (9 16:57 -0300)
committerAndreas Färber <afaerber@suse.de>
Fri, 19 Jun 2015 08:29:14 +0000 (19 10:29 +0200)
treee275782435e002cfcd90796a4da81a990e397c9a
parent8ffe756da0481233e1bd518b2b16489f51856292
qom: strdup() target property name on object_property_add_alias()

With this, object_property_add_alias() callers can safely free the
target property name, like what already happens with the 'name' argument
to all object_property_add*() functions.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
qom/object.c