summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-02-16 08:41:52 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-02-16 16:41:20 +0100
commit18557e646b9df9d60755f2fab151642d8b81affb (patch)
treed9ed1b8f51fe0fb5723152881d32329b050c5921
parentb44bbeb44bbacd1f47473d5f70468ae2141847cf (diff)
downloadqemu-18557e646b9df9d60755f2fab151642d8b81affb.tar.gz
qemu-18557e646b9df9d60755f2fab151642d8b81affb.tar.bz2
qemu-18557e646b9df9d60755f2fab151642d8b81affb.zip
mptsas: fix memory leak
Reported by Coverity. Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--hw/scsi/mptsas.c1
1 files changed, 1 insertions, 0 deletions
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;