QOM devices patch queue 2013-11-19
Hello Anthony,
This is my QOM (devices) patch queue for 1.7. Please pull.
Thanks,
Andreas
The following changes since commit 5c5432e7d630592ddcc1876ac8a1505f8f14ef15:
Merge remote-tracking branch 'luiz/queue/qmp' into staging (2013-11-13 11:49:27 -0800)
are available in the git repository at:
git://github.com/afaerber/qemu-cpu.git tags/qom-devices-for-anthony
for you to fetch changes up to 2d3aa28cc2cf382aa04cd577e0be542175eea9bd:
qom: Fix memory leak in object_property_set_link() (2013-11-19 10:58:21 +0100)
----------------------------------------------------------------
QOM infrastructure fixes for 1.7
* QOM memory leak fix
----------------------------------------------------------------
Vlad Yasevich (1):
qom: Fix memory leak in object_property_set_link()
qom/object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
[Qemu-devel] [PULL for-1.7 1/1] qom: Fix memory leak in object_property_set_link()
From: Vlad Yasevich <[email protected]>
Save the result of the call to object_get_canonical_path() so we can free it.
--- qom/object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
qom/object.c +3 -2
@@ -838,8 +838,9 @@ char *object_property_get_str(Object *obj, const char *name,void object_property_set_link (Object *obj,Object *value,const char *name,Error **errp) { -object_property_set_str (obj,object_get_canonical_path (value), - name, errp); +gchar *path =object_get_canonical_path (value); +object_property_set_str (obj, path, name, errp); +g_free (path); } Object *object_property_get_link(Object *obj, const char *name,
Signature · 1 line
1.8.1.4