core/qdev: fix memleak in qdev_get_gpio_out_connector()
commit2244f2335ea8f3b92cbecbb123dc392570b06e6c
authorPan Nengyuan <pannengyuan@huawei.com>
Sat, 7 Mar 2020 03:07:56 +0000 (7 11:07 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 9 Mar 2020 14:59:31 +0000 (9 15:59 +0100)
tree9e2324a5487c849df87ed2ba61d373ea05e14118
parentfe8ce968c13ab58f42068eb0a7d557b1d209cd8d
core/qdev: fix memleak in qdev_get_gpio_out_connector()

Fix a memory leak in qdev_get_gpio_out_connector().

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200307030756.5913-1-pannengyuan@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/core/qdev.c