Re: [PATCH] virtio-9p-device: fix memleak in virtio_9p_device_unrealize

2020-01-15 Thread Christian Schoenebeck
On Mittwoch, 15. Januar 2020 02:28:03 CET Pan Nengyuan wrote: > >>> diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c > >>> index b5a7c03f26..b146387ae2 100644 > >>> --- a/hw/9pfs/virtio-9p-device.c > >>> +++ b/hw/9pfs/virtio-9p-device.c > >>> @@ -215,6 +215,7 @@ static void

Re: [PATCH] virtio-9p-device: fix memleak in virtio_9p_device_unrealize

2020-01-14 Thread Pan Nengyuan
On 1/14/2020 10:17 PM, Christian Schoenebeck wrote: > On Dienstag, 14. Januar 2020 11:08:59 CET Christian Schoenebeck wrote: >> On Dienstag, 14. Januar 2020 08:40:20 CET pannengy...@huawei.com wrote: >>> From: Pan Nengyuan >>> >>> v->vq forgot to cleanup in virtio_9p_device_unrealize, the

Re: [PATCH] virtio-9p-device: fix memleak in virtio_9p_device_unrealize

2020-01-14 Thread Christian Schoenebeck
On Dienstag, 14. Januar 2020 11:08:59 CET Christian Schoenebeck wrote: > On Dienstag, 14. Januar 2020 08:40:20 CET pannengy...@huawei.com wrote: > > From: Pan Nengyuan > > > > v->vq forgot to cleanup in virtio_9p_device_unrealize, the memory leak > > stack is as follow: > > > > Direct leak of

Re: [PATCH] virtio-9p-device: fix memleak in virtio_9p_device_unrealize

2020-01-14 Thread Christian Schoenebeck
On Dienstag, 14. Januar 2020 08:40:20 CET pannengy...@huawei.com wrote: > From: Pan Nengyuan > > v->vq forgot to cleanup in virtio_9p_device_unrealize, the memory leak > stack is as follow: > > Direct leak of 14336 byte(s) in 2 object(s) allocated from: > #0 0x7f819ae43970

[PATCH] virtio-9p-device: fix memleak in virtio_9p_device_unrealize

2020-01-13 Thread pannengyuan
From: Pan Nengyuan v->vq forgot to cleanup in virtio_9p_device_unrealize, the memory leak stack is as follow: Direct leak of 14336 byte(s) in 2 object(s) allocated from: #0 0x7f819ae43970 (/lib64/libasan.so.5+0xef970) ??:? #1 0x7f819872f49d (/lib64/libglib-2.0.so.0+0x5249d) ??:? #2