From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5oTb-0005t6-KZ for qemu-devel@nongnu.org; Sat, 03 Aug 2013 22:55:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5oTT-0004z1-N7 for qemu-devel@nongnu.org; Sat, 03 Aug 2013 22:55:23 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:51213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5oTT-0004yw-He for qemu-devel@nongnu.org; Sat, 03 Aug 2013 22:55:15 -0400 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 3 Aug 2013 20:55:15 -0600 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id A58E938C8027 for ; Sat, 3 Aug 2013 22:55:10 -0400 (EDT) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r742tBZj162230 for ; Sat, 3 Aug 2013 22:55:12 -0400 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r742tBnG020418 for ; Sat, 3 Aug 2013 20:55:11 -0600 From: mrhines@linux.vnet.ibm.com Date: Sat, 3 Aug 2013 22:54:54 -0400 Message-Id: <1375584894-9917-8-git-send-email-mrhines@linux.vnet.ibm.com> In-Reply-To: <1375584894-9917-1-git-send-email-mrhines@linux.vnet.ibm.com> References: <1375584894-9917-1-git-send-email-mrhines@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v3 For-1.6 7/7] rdma: memory leak RDMAContext::host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: yamahata@private.email.ne.jp, aliguori@us.ibm.com, quintela@redhat.com, owasserm@redhat.com, mrhines@us.ibm.com, pbonzini@redhat.com From: Isaku Yamahata 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 --- migration-rdma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration-rdma.c b/migration-rdma.c index 6afe98c..ff0a823 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; } -- 1.7.10.4