Re: [PATCH] migration/rdma: fix a memleak on error path in rdma_start_incoming_migration

2020-05-07 Thread Pan Nengyuan
On 4/24/2020 5:46 PM, Dr. David Alan Gilbert wrote: > * Pan Nengyuan (pannengy...@huawei.com) wrote: >> 'rdma->host' is malloced in qemu_rdma_data_init, but forgot to free on the >> error >> path in rdma_start_incoming_migration(), this patch fix that. >> >> The leak stack: >> Direct leak of 2

Re: [PATCH] migration/rdma: fix a memleak on error path in rdma_start_incoming_migration

2020-04-24 Thread Dr. David Alan Gilbert
* Pan Nengyuan (pannengy...@huawei.com) wrote: > 'rdma->host' is malloced in qemu_rdma_data_init, but forgot to free on the > error > path in rdma_start_incoming_migration(), this patch fix that. > > The leak stack: > Direct leak of 2 byte(s) in 1 object(s) allocated from: > #0

Re: [PATCH] migration/rdma: fix a memleak on error path in rdma_start_incoming_migration

2020-04-20 Thread Pan Nengyuan
Correcting zhang hailiang's email. On 4/20/2020 6:27 PM, Pan Nengyuan wrote: > 'rdma->host' is malloced in qemu_rdma_data_init, but forgot to free on the > error > path in rdma_start_incoming_migration(), this patch fix that. > > The leak stack: > Direct leak of 2 byte(s) in 1 object(s)