Received: from eggs.gnu.org ([2001:4830:134:3::10]:50526) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVadK-0004wV-ND for qemu-devel@nongnu.org; Tue, 16 Feb 2016 03:05:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVadI-0004hU-1T for qemu-devel@nongnu.org; Tue, 16 Feb 2016 03:05:18 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:35909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVadH-0004hQ-Qy for qemu-devel@nongnu.org; Tue, 16 Feb 2016 03:05:15 -0500 Received: by mail-wm0-x236.google.com with SMTP id g62so92734593wme.1 for ; Tue, 16 Feb 2016 00:05:15 -0800 (PST) Received: from donizetti.lan (94-39-180-249.adsl-ull.clienti.tiscali.it. [94.39.180.249]) by smtp.gmail.com with ESMTPSA id q129sm19424602wmd.14.2016.02.16.00.05.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2016 00:05:14 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 16 Feb 2016 09:05:08 +0100 Message-Id: <1455609909-10072-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1455609909-10072-1-git-send-email-pbonzini@redhat.com> References: <1455609909-10072-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] mptsas: fix memory leak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Reported by Coverity. 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