diff --git a/xen/common/schedule.c b/xen/common/schedule.c index fdeec10c3b..3fdfa59ef3 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -385,7 +385,7 @@ int sched_move_domain(struct domain *d, struct cpupool *c) if ( vcpu_priv[v->vcpu_id] == NULL ) { for_each_vcpu ( d, v ) - xfree(vcpu_priv[v->vcpu_id]); + sched_free_vdata(c->sched, vcpu_priv[v->vcpu_id]); xfree(vcpu_priv); sched_free_domdata(c->sched, domdata); return -ENOMEM;