]> git.proxmox.com Git - mirror_qemu.git/commitdiff
rdma: memory leak RDMAContext::host
authorIsaku Yamahata <yamahata@private.email.ne.jp>
Sun, 4 Aug 2013 02:54:54 +0000 (22:54 -0400)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Aug 2013 16:47:47 +0000 (11:47 -0500)
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>
migration-rdma.c

index 83c9a0b761501dbb37c6390afcf4495e69b2effb..3a380d411a9edd185253860276ac81aa96ff36f2 100644 (file)
@@ -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;
 }