From 18557e646b9df9d60755f2fab151642d8b81affb Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 16 Feb 2016 08:41:52 +0100 Subject: mptsas: fix memory leak 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 333cc1fb97..1ce32261b5 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; -- cgit v1.2.3