From: Isaku Yamahata Date: Sun, 4 Aug 2013 02:54:54 +0000 (-0400) Subject: rdma: memory leak RDMAContext::host X-Git-Tag: pull-nvme-20200902~5404 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e1d0fb378ae3bb4272124a12e3fe1a02c4745eb1;p=qemu-nvme.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 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; }