qdev: Free property names after registering gpio aliases
commit6bc5cf92c0ab0085ba9a6e0cebcf5a544f416ca7
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 9 Apr 2015 19:57:30 +0000 (9 16:57 -0300)
committerAndreas Färber <afaerber@suse.de>
Fri, 19 Jun 2015 08:29:14 +0000 (19 10:29 +0200)
tree902503d3cb2c1d40b26a70bd6680aa6a6959cc6f
parent1590d266d96b3f9b42443d6388dfc38f527ac2d8
qdev: Free property names after registering gpio aliases

Now that object_property_add_alias() strdup()s target_name, we can free
the property names in qdev_pass_gpios().

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>
hw/core/qdev.c