aboutsummaryrefslogtreecommitdiff
path: root/linux-user/target_flat.h
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2020-03-03 04:12:54 -0500
committerPeter Maydell <peter.maydell@linaro.org>2020-03-12 16:27:33 +0000
commitd6f33c557ce9e4a9c5c7285e7aa71b5884241629 (patch)
tree469276efd32f16a49ff2277705c17dbb26a06730 /linux-user/target_flat.h
parent38d931687fa196a7ef860f8583815abc7fd5521a (diff)
downloadqemu-d6f33c557ce9e4a9c5c7285e7aa71b5884241629.zip
qemu-d6f33c557ce9e4a9c5c7285e7aa71b5884241629.tar.gz
qemu-d6f33c557ce9e4a9c5c7285e7aa71b5884241629.tar.bz2
hw/arm/cubieboard: make sure SOC object isn't leaked
SOC object returned by object_new() is leaked in current code. Set SOC parent explicitly to board and then unref to SOC object to make sure that refererence returned by object_new() is taken care of. The SOC object will be kept alive by its parent (machine) and will be automatically freed when MachineState is destroyed. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reported-by: Andrew Jones <drjones@redhat.com> Tested-by: Niek Linnenbank <nieklinnenbank@gmail.com> Message-id: 20200303091254.22373-1-imammedo@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user/target_flat.h')
0 files changed, 0 insertions, 0 deletions