diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2022-08-11 16:14:06 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2022-08-16 09:57:07 +0100 |
commit | 52f0c1607671293afcdb2acc2f83e9bccbfa74bb (patch) | |
tree | fc89e7767eb703455992ad02b5808b757eec76e7 /qapi/qobject-output-visitor.c | |
parent | d102b8162a1e5fe8288d4d5c01801ce6536ac2d1 (diff) | |
download | qemu-52f0c1607671293afcdb2acc2f83e9bccbfa74bb.zip qemu-52f0c1607671293afcdb2acc2f83e9bccbfa74bb.tar.gz qemu-52f0c1607671293afcdb2acc2f83e9bccbfa74bb.tar.bz2 |
linux-user: un-parent OBJECT(cpu) when closing thread
While forcing the CPU to unrealize by hand does trigger the clean-up
code we never fully free resources because refcount never reaches
zero. This is because QOM automatically added objects without an
explicit parent to /unattached/, incrementing the refcount.
Instead of manually triggering unrealization just unparent the object
and let the device machinery deal with that for us.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/866
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220811151413.3350684-2-alex.bennee@linaro.org>
Diffstat (limited to 'qapi/qobject-output-visitor.c')
0 files changed, 0 insertions, 0 deletions