OSDN Git Service

cpus: join thread when removing a vCPU
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Jan 2018 15:40:12 +0000 (16:40 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Feb 2018 13:09:25 +0000 (14:09 +0100)
commitdbadee4ff4a02d4b4cc138dd63b769b1d9391896
tree3acdc2a359e2329db777cce572ab582ee67939bb
parent8178e6376f311a5691ab6122e15863faa9a1f008
cpus: join thread when removing a vCPU

If no one joins the thread, its associated memory is leaked.

Reported-by: CheneyLin <linzc@zju.edu.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpus.c