Files
qemu/hw/arm
Igor Mammedov dbb74759fa hw/arm/virt: fix cpu object reference leak
object_new(FOO) returns an object with ref_cnt == 1
and following
  object_property_set_bool(cpuobj, true, "realized", NULL)
set parent of cpuobj to '/machine/unattached' which makes
ref_cnt == 2.

Since machvirt_init() doesn't take ownership of cpuobj
returned by object_new() it should explicitly drop
reference to cpuobj when dangling pointer is about to
go out of scope like it's done pc_new_cpu() to avoid
object leak.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 1487253461-269218-1-git-send-email-imammedo@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-02-28 12:08:15 +00:00
..
2017-02-07 18:29:59 +00:00
2016-05-19 16:42:27 +02:00
2016-06-06 16:59:31 +01:00
2016-10-24 16:26:55 +01:00
2017-01-27 18:07:59 +01:00
2017-01-27 18:07:59 +01:00
2016-10-24 16:26:55 +01:00
2016-05-12 13:42:08 +01:00
2017-01-27 18:07:59 +01:00
2016-07-04 13:15:22 +01:00
2016-10-24 16:26:56 +01:00