]> Git Repo - qemu.git/commit
usb: ehci: fix memory leak in ehci_init_transfer
authorLi Qiang <[email protected]>
Tue, 8 Nov 2016 12:11:10 +0000 (04:11 -0800)
committerStefan Hajnoczi <[email protected]>
Thu, 10 Nov 2016 15:29:58 +0000 (15:29 +0000)
commit791f97758e223de3290592d169f8e6339c281714
tree0d1887dd38aebbfb4b3f300d83b09f0557767af1
parent423f7cf233fe262c777db7f87db3e9fac29e02d1
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 <[email protected]>
Message-id: 5821c0f4.091c6b0a[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb/hcd-ehci.c
This page took 0.025248 seconds and 4 git commands to generate.