Re: [Qemu-devel] [PATCH] xhci: Fix memory leak in xhci_address_slot

2019-08-27 Thread Li Qiang
Ying Fang 于2019年8月27日周二 下午4:03写道: > Address Sanitizer shows memory leak in xhci_address_slot > hw/usb/hcd-xhci.c:2156 and the stack is as bellow: > > Direct leak of 64 byte(s) in 4 object(s) allocated from: > #0 0x91c6f5ab in realloc (/lib64/libasan.so.4+0xd35ab) > #1 0x91987243 i

[Qemu-devel] [PATCH] xhci: Fix memory leak in xhci_address_slot

2019-08-27 Thread Ying Fang
Address Sanitizer shows memory leak in xhci_address_slot hw/usb/hcd-xhci.c:2156 and the stack is as bellow: Direct leak of 64 byte(s) in 4 object(s) allocated from: #0 0x91c6f5ab in realloc (/lib64/libasan.so.4+0xd35ab) #1 0x91987243 in g_realloc (/lib64/libglib-2.0.so.0+0x57243)