Commit adf06b94 authored by Pavel Emelyanov's avatar Pavel Emelyanov

core: Don't free not-allocated thread_info

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f3b84d28
......@@ -288,6 +288,9 @@ err:
void arch_free_thread_info(CoreEntry *core)
{
if (!core->thread_info)
return;
if (core->thread_info->fpregs->xsave)
xfree(core->thread_info->fpregs->xsave->ymmh_space);
xfree(core->thread_info->fpregs->st_space);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment