From: linzhecheng <linzhech...@huawei.com>

entry is moved from list but is not freed.

Signed-off-by: linzhecheng <linzhech...@huawei.com>

Message-Id: <20171225024704.19540-1-linzhech...@huawei.com>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
---
 target/i386/kvm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/i386/kvm.c b/target/i386/kvm.c
index 825aea5..4912f4d 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;
         }
     }
-- 
1.8.3.1



Reply via email to