summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorMao Zhongyi2017-08-14 05:33:08 +0200
committerJason Wang2017-09-08 02:17:37 +0200
commit1343a107e46feed8b901bf08ad8485bd5f302912 (patch)
treed2e5904884c46145026e82ecd5c7e149b842f8d0 /scripts/checkpatch.pl
parentnet/rocker: Remove the dead error handling (diff)
downloadqemu-1343a107e46feed8b901bf08ad8485bd5f302912.tar.gz
qemu-1343a107e46feed8b901bf08ad8485bd5f302912.tar.xz
qemu-1343a107e46feed8b901bf08ad8485bd5f302912.zip
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>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions