From e1d0fb378ae3bb4272124a12e3fe1a02c4745eb1 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Sat, 3 Aug 2013 22:54:54 -0400 Subject: rdma: memory leak RDMAContext::host It is allocated by g_strdup(), so needs to be freed. Reviewed-by: Michael R. Hines Signed-off-by: Isaku Yamahata Signed-off-by: Michael R. Hines Message-id: 1375584894-9917-8-git-send-email-mrhines@linux.vnet.ibm.com Signed-off-by: Anthony Liguori --- migration-rdma.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'migration-rdma.c') 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; } -- cgit v1.2.1