aboutsummaryrefslogtreecommitdiff
path: root/migration-rdma.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@private.email.ne.jp>2013-08-03 22:54:54 -0400
committerAnthony Liguori <aliguori@us.ibm.com>2013-08-05 11:47:47 -0500
commite1d0fb378ae3bb4272124a12e3fe1a02c4745eb1 (patch)
treee9185e107bb28700704234b0f7c0f60802e714a4 /migration-rdma.c
parent877726397f7e24d0c8a2b303a852769b5edd155c (diff)
rdma: memory leak RDMAContext::host
It is allocated by g_strdup(), so needs to be freed. Reviewed-by: Michael R. Hines <mrhines@us.ibm.com> Signed-off-by: Isaku Yamahata <yamahata@private.email.ne.jp> Signed-off-by: Michael R. Hines <mrhines@us.ibm.com> Message-id: 1375584894-9917-8-git-send-email-mrhines@linux.vnet.ibm.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration-rdma.c')
-rw-r--r--migration-rdma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/migration-rdma.c b/migration-rdma.c
index 83c9a0b761..3a380d411a 100644
--- a/migration-rdma.c
+++ b/migration-rdma.c
@@ -2097,6 +2097,8 @@ static void qemu_rdma_cleanup(RDMAContext *rdma)
rdma_destroy_event_channel(rdma->channel);
rdma->channel = NULL;
}
+ g_free(rdma->host);
+ rdma->host = NULL;
}