Received: from eggs.gnu.org ([2001:4830:134:3::10]:42713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aViae-0003OI-VS for qemu-devel@nongnu.org; Tue, 16 Feb 2016 11:35:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aViae-0007Aa-88 for qemu-devel@nongnu.org; Tue, 16 Feb 2016 11:35:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aViad-0007AU-RO for qemu-devel@nongnu.org; Tue, 16 Feb 2016 11:35:03 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 8027AC0BBE45 for ; Tue, 16 Feb 2016 16:35:03 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-51.ams2.redhat.com [10.36.112.51]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1GGYlLf023440 for ; Tue, 16 Feb 2016 11:35:02 -0500 From: Paolo Bonzini Date: Tue, 16 Feb 2016 17:34:28 +0100 Message-Id: <1455640486-6101-11-git-send-email-pbonzini@redhat.com> In-Reply-To: <1455640486-6101-1-git-send-email-pbonzini@redhat.com> References: <1455640486-6101-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 10/28] mptsas: fix memory leak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Reported by Coverity. Reviewed-by: Markus Armbruster Signed-off-by: Paolo Bonzini --- hw/scsi/mptsas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c index 333cc1f..1ce3226 100644 --- a/hw/scsi/mptsas.c +++ b/hw/scsi/mptsas.c @@ -504,6 +504,7 @@ reply_maybe_async: reply_async->IOCLogInfo = count; return; } + g_free(reply_async); reply.TerminationCount = count; break; -- 2.5.0