From: Paolo Bonzini Date: Mon, 2 May 2011 07:54:04 +0000 (+0200) Subject: kvm: use qemu_free consistently X-Git-Tag: TizenStudio_2.0_p2.3~2777 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df0b36600492c9672bf73472864d711074f2d41a;p=sdk%2Femulator%2Fqemu.git kvm: use qemu_free consistently Signed-off-by: Paolo Bonzini Signed-off-by: Marcelo Tosatti --- diff --git a/kvm-all.c b/kvm-all.c index 8b85029..d92c20e 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1191,7 +1191,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; } @@ -1315,7 +1315,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 485572f..faedc6c 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -572,7 +572,7 @@ static int kvm_get_supported_msrs(KVMState *s) } } - free(kvm_msr_list); + qemu_free(kvm_msr_list); } return ret;