Reported by Coverity. Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- 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