Patchwork [uq/master,2/4] kvm: use qemu_free consistently

login
register
mail settings
Submitter Paolo Bonzini
Date May 2, 2011, 7:54 a.m.
Message ID <1304322846-24376-2-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/93597/
State New
Headers show

Comments

Paolo Bonzini - May 2, 2011, 7:54 a.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 kvm-all.c         |    4 ++--
 target-i386/kvm.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/kvm-all.c b/kvm-all.c
index 1d7e8ea..d0c36cb 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1167,7 +1167,7 @@  int kvm_insert_breakpoint(CPUState *current_env, target_ulong addr,
         bp->use_count = 1;
         err = kvm_arch_insert_sw_breakpoint(current_env, bp);
         if (err) {
-            free(bp);
+            qemu_free(bp);
             return err;
         }
 
@@ -1291,7 +1291,7 @@  int kvm_set_signal_mask(CPUState *env, const sigset_t *sigset)
     sigmask->len = 8;
     memcpy(sigmask->sigset, sigset, sizeof(*sigset));
     r = kvm_vcpu_ioctl(env, KVM_SET_SIGNAL_MASK, sigmask);
-    free(sigmask);
+    qemu_free(sigmask);
 
     return r;
 }
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index a13599d..d0c2b86 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -552,7 +552,7 @@  static int kvm_get_supported_msrs(KVMState *s)
             }
         }
 
-        free(kvm_msr_list);
+        qemu_free(kvm_msr_list);
     }
 
     return ret;