* [Qemu-devel] [PATCH] rdma: memory leak RDMAContext::host
@ 2013-08-04 1:23 Isaku Yamahata
2013-08-14 16:28 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Isaku Yamahata @ 2013-08-04 1:23 UTC (permalink / raw)
To: qemu-devel; +Cc: owasserm, pbonzini, mrhines, quintela
It is allocated by g_strdup(), so needs to be freed.
Signed-off-by: Isaku Yamahata <yamahata@private.email.ne.jp>
---
migration-rdma.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/migration-rdma.c b/migration-rdma.c
index 4828738..2c15d95 100644
--- a/migration-rdma.c
+++ b/migration-rdma.c
@@ -2092,6 +2092,8 @@ static void qemu_rdma_cleanup(RDMAContext *rdma)
rdma_destroy_event_channel(rdma->channel);
rdma->channel = NULL;
}
+ g_free(rdma->host);
+ rdma->host = NULL;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] rdma: memory leak RDMAContext::host
2013-08-04 1:23 [Qemu-devel] [PATCH] rdma: memory leak RDMAContext::host Isaku Yamahata
@ 2013-08-14 16:28 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2013-08-14 16:28 UTC (permalink / raw)
To: Isaku Yamahata, qemu-devel; +Cc: owasserm, quintela, mrhines, pbonzini
Applied. Thanks.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-14 16:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-04 1:23 [Qemu-devel] [PATCH] rdma: memory leak RDMAContext::host Isaku Yamahata
2013-08-14 16:28 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).