libthread: fix fault in teardown of proc

Fixes #332.
This commit is contained in:
Russ Cox 2020-01-13 23:26:26 -05:00
parent 573169dd88
commit 481b596d93
2 changed files with 2 additions and 1 deletions

View file

@ -429,6 +429,7 @@ Out:
unlock(&p->lock);
_threadsetproc(nil);
free(p);
_threadpexit();
}
void