Re: [PATCH 1/2] vhost-user-blk: delete virtioqueues in unrealize to fix memleaks

2020-02-21 Thread Stefan Hajnoczi
On Thu, Feb 13, 2020 at 09:28:06AM +0800, pannengy...@huawei.com wrote: > From: Pan Nengyuan > > virtio queues forgot to delete in unrealize, and aslo error path in > realize, this patch fix these memleaks, the leak stack is as follow: > > Direct leak of 114688 byte(s) in 16 object(s) allocated

[PATCH 1/2] vhost-user-blk: delete virtioqueues in unrealize to fix memleaks

2020-02-12 Thread pannengyuan
From: Pan Nengyuan virtio queues forgot to delete in unrealize, and aslo error path in realize, this patch fix these memleaks, the leak stack is as follow: Direct leak of 114688 byte(s) in 16 object(s) allocated from: #0 0x7f24024fdbf0 in calloc (/lib64/libasan.so.3+0xcabf0) #1 0x7f24016