diff options
author | linzhecheng <linzhecheng@huawei.com> | 2017-12-25 10:47:04 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-01-16 14:54:51 +0100 |
commit | 01960e6d21dcfbfc8a03d8fd6284c448cf75865b (patch) | |
tree | 9249000d8a055af0e2addc2d19204105f012f09c /target/i386/kvm.c | |
parent | db08b687cdd5319286665aabd34f82665630416f (diff) | |
download | qemu-01960e6d21dcfbfc8a03d8fd6284c448cf75865b.zip |
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>
Diffstat (limited to 'target/i386/kvm.c')
-rw-r--r-- | target/i386/kvm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 825aea5bd5..4912f4d538 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -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; } } |