diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-05-31 14:56:37 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-06-07 18:22:02 +0200 |
commit | c25a67f0c3d0c86231f9653267a222c4effa706f (patch) | |
tree | 086fd41ae8e9c7501863047737b4658810222d6d /hw/misc/milkymist-pfpu.c | |
parent | 7e018385103cd7a571b9ea0d6f994af6b1129fe7 (diff) |
edu: fix memory leak on msi_broken platforms
If msi_init fails, the thread has already been created and the
mutex/condvar are not destroyed. Initialize everything only
after the point where pci_edu_realize cannot fail.
Reported-by: Markus Armbruster <armbru@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/milkymist-pfpu.c')
0 files changed, 0 insertions, 0 deletions