From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z73Uj-0001sZ-ML for qemu-devel@nongnu.org; Mon, 22 Jun 2015 11:18:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z73Uf-0002Jq-S8 for qemu-devel@nongnu.org; Mon, 22 Jun 2015 11:18:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z73Uf-0002Je-Mg for qemu-devel@nongnu.org; Mon, 22 Jun 2015 11:18:41 -0400 From: "Dr. David Alan Gilbert (git)" Date: Mon, 22 Jun 2015 16:18:39 +0100 Message-Id: <1434986319-22294-1-git-send-email-dgilbert@redhat.com> Subject: [Qemu-devel] [PATCH] RDMA: Missing free in (probably unreachable) error path List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, mrhines@us.ibm.com, quintela@redhat.com From: "Dr. David Alan Gilbert" Coverity CID 1307773 Signed-off-by: Dr. David Alan Gilbert --- migration/rdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/migration/rdma.c b/migration/rdma.c index 53e611e..2a9e0ce 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -3395,6 +3395,7 @@ static void *qemu_fopen_rdma(RDMAContext *rdma, const char *mode) QEMUFileRDMA *r = g_malloc0(sizeof(QEMUFileRDMA)); if (qemu_file_mode_is_not_valid(mode)) { + g_free(r); return NULL; } -- 2.4.3