qemu-patch-raspberry4/hw/net/rocker
Mao Zhongyi 1343a107e4 net/rocker: Plug memory leak in pci_rocker_init()
pci_rocker_init() leaks a World when the name more than 9 chars,
then return a negative value directly, doesn't make a correct
cleanup. So add a new goto label to fix it.

Cc: jasowang@redhat.com
Cc: jiri@resnulli.us
Cc: armbru@redhat.com
Cc: f4bug@amsat.org
Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2017-09-08 08:17:37 +08:00
..
qmp-norocker.c hw/net: Clean up includes 2016-01-29 15:07:23 +00:00
rocker.c net/rocker: Plug memory leak in pci_rocker_init() 2017-09-08 08:17:37 +08:00
rocker.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_desc.c net/rocker: Remove the dead error handling 2017-09-08 08:17:37 +08:00
rocker_desc.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_fp.c net/rocker: Remove the dead error handling 2017-09-08 08:17:37 +08:00
rocker_fp.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_hw.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_of_dpa.c net/rocker: Remove the dead error handling 2017-09-08 08:17:37 +08:00
rocker_of_dpa.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_tlv.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
rocker_world.c net/rocker: Remove the dead error handling 2017-09-08 08:17:37 +08:00
rocker_world.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00