kvm: use qemu_free consistently

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
Paolo Bonzini 2011-05-02 09:54:04 +02:00 committed by Marcelo Tosatti
parent 51b0c6065a
commit 4a043713b3
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -572,7 +572,7 @@ static int kvm_get_supported_msrs(KVMState *s)
}
}
free(kvm_msr_list);
qemu_free(kvm_msr_list);
}
return ret;