irq: fix memory leak
PATCH 1/1 irq: fix memory leak
entry is moved from list but is not freed.
Signed-off-by linzhecheng <[email protected]>
target/i386/kvm.c +1 -0
@@ -3494,6 +3494,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 ; } }
Signature · 1 line
2.12.2.windows.2
Quoted 21 lines · linzhecheng
entry is moved from list but is not freed.
Signed-off-by linzhecheng <[email protected]>target/i386/kvm.c +1
-0@@ -3494,6 +3494,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 ; } }Signature · 1 line
2.12.2.windows.2
My INBOX didn't really catch this email, don't know why. Anyway, thanks for fixing that.
Reviewed-by Peter Xu <[email protected]>
Signature · 1 line
Peter Xu
Quoted 20 lines · linzhecheng
entry is moved from list but is not freed.
Signed-off-by linzhecheng <[email protected]>target/i386/kvm.c +1
-0@@ -3494,6 +3494,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 ; } }Signature · 1 line
2.12.2.windows.2
Reviewed-by Peter Xu <[email protected]>
Signature · 1 line
Peter Xu
Quoted 3 lines · linzhecheng
entry is moved from list but is not freed.
Signed-off-by linzhecheng <[email protected]>
Makes sense.
Reviewed-by Michael S. Tsirkin <[email protected]>
Quoted 15 lines
target/i386/kvm.c +1
-0@@ -3494,6 +3494,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 ; } }Signature · 1 line
2.12.2.windows.2
Paolo Bonzini
AppliedQuoted 10 lines · linzhecheng
entry is moved from list but is not freed.
Signed-off-by linzhecheng <[email protected]>target/i386/kvm.c +0
-0
target/i386/kvm.c int kvm_arch_release_virq_post(int virq) · line 3500
Quoted 7 lines
target/i386/kvm.c +1
-0@@ -3494,6 +3494,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 ; } }
Queued, thanks.
Paolo