Skip to content

Commit

Permalink
mptsas: fix memory leak
Browse files Browse the repository at this point in the history
Reported by Coverity.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Feb 16, 2016
1 parent b44bbeb commit 18557e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/scsi/mptsas.c
Expand Up @@ -504,6 +504,7 @@ static void mptsas_process_scsi_task_mgmt(MPTSASState *s, MPIMsgSCSITaskMgmt *re
reply_async->IOCLogInfo = count;
return;
}
g_free(reply_async);
reply.TerminationCount = count;
break;

Expand Down

0 comments on commit 18557e6

Please sign in to comment.