aboutsummaryrefslogtreecommitdiff
path: root/hw/rtc
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2022-08-11 16:14:06 +0100
committerAlex Bennée <alex.bennee@linaro.org>2022-08-16 09:57:07 +0100
commit52f0c1607671293afcdb2acc2f83e9bccbfa74bb (patch)
treefc89e7767eb703455992ad02b5808b757eec76e7 /hw/rtc
parentd102b8162a1e5fe8288d4d5c01801ce6536ac2d1 (diff)
downloadqemu-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 'hw/rtc')
0 files changed, 0 insertions, 0 deletions