Skip to content

Commit

Permalink
irq: fix memory leak
Browse files Browse the repository at this point in the history
entry is moved from list but is not freed.

Signed-off-by: linzhecheng <[email protected]>

Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
cheney-lin authored and bonzini committed Jan 16, 2018
1 parent db08b68 commit 01960e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions target/i386/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3470,6 +3470,7 @@ int kvm_arch_release_virq_post(int virq)
if (entry->virq == virq) {
trace_kvm_x86_remove_msi_route(virq);
QLIST_REMOVE(entry, list);
g_free(entry);
break;
}
}
Expand Down

0 comments on commit 01960e6

Please sign in to comment.