mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
irq: fix memory leak
entry is moved from list but is not freed. Signed-off-by: linzhecheng <linzhecheng@huawei.com> Message-Id: <20171225024704.19540-1-linzhecheng@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
db08b687cd
commit
01960e6d21
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user