diff options
author | Li Qiang <liqiang6-s@360.cn> | 2016-11-08 04:11:10 -0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2016-11-10 15:29:58 +0000 |
commit | 791f97758e223de3290592d169f8e6339c281714 (patch) | |
tree | 0d1887dd38aebbfb4b3f300d83b09f0557767af1 /hw/usb/bus.c | |
parent | 423f7cf233fe262c777db7f87db3e9fac29e02d1 (diff) | |
download | qemu-791f97758e223de3290592d169f8e6339c281714.zip qemu-791f97758e223de3290592d169f8e6339c281714.tar.gz qemu-791f97758e223de3290592d169f8e6339c281714.tar.bz2 |
usb: ehci: fix memory leak in ehci_init_transfer
In ehci_init_transfer function, if the 'cpage' is bigger than 4,
it doesn't free the 'p->sgl' once allocated previously thus leading
a memory leak issue. This patch avoid this.
Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-id: 5821c0f4.091c6b0a.e0c92.e811@mx.google.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/bus.c')
0 files changed, 0 insertions, 0 deletions