From: Isaku Yamahata Date: Sun, 4 Aug 2013 02:54:54 +0000 (-0400) Subject: rdma: memory leak RDMAContext::host X-Git-Tag: v1.6.0-rc2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1d0fb378ae3bb4272124a12e3fe1a02c4745eb1;p=thirdparty%2Fqemu.git 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 --- diff --git a/migration-rdma.c b/migration-rdma.c index 83c9a0b7615..3a380d411a9 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; }