qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] rdma: memory leak RDMAContext::host


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH] rdma: memory leak RDMAContext::host
Date: Sun, 4 Aug 2013 10:23:01 +0900

It is allocated by g_strdup(), so needs to be freed.

Signed-off-by: Isaku Yamahata <address@hidden>
---
 migration-rdma.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/migration-rdma.c b/migration-rdma.c
index 4828738..2c15d95 100644
--- a/migration-rdma.c
+++ b/migration-rdma.c
@@ -2092,6 +2092,8 @@ static void qemu_rdma_cleanup(RDMAContext *rdma)
         rdma_destroy_event_channel(rdma->channel);
         rdma->channel = NULL;
     }
+    g_free(rdma->host);
+    rdma->host = NULL;
 }
 
 
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]