Re: [PATCH 2/2] migration/rdma: cleanup rdma context before g_free to avoid memleaks

2020-05-29 Thread Dr. David Alan Gilbert
* Pan Nengyuan (pannengy...@huawei.com) wrote: > When error happen in initializing 'rdma_return_path', we should cleanup rdma > context > before g_free(rdma) to avoid some memleaks. This patch fix that. > > Reported-by: Euler Robot > Signed-off-by: Pan Nengyuan Queued. > --- >

Re: [PATCH 2/2] migration/rdma: cleanup rdma context before g_free to avoid memleaks

2020-05-08 Thread Juan Quintela
Pan Nengyuan wrote: > When error happen in initializing 'rdma_return_path', we should cleanup rdma > context > before g_free(rdma) to avoid some memleaks. This patch fix that. > > Reported-by: Euler Robot > Signed-off-by: Pan Nengyuan Reviewed-by: Juan Quintela Another good catch.

[PATCH 2/2] migration/rdma: cleanup rdma context before g_free to avoid memleaks

2020-05-07 Thread Pan Nengyuan
When error happen in initializing 'rdma_return_path', we should cleanup rdma context before g_free(rdma) to avoid some memleaks. This patch fix that. Reported-by: Euler Robot Signed-off-by: Pan Nengyuan --- migration/rdma.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff