summaryrefslogtreecommitdiffstats
path: root/lib/libkse
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-09-30 06:41:16 +0000
committerjb <jb@FreeBSD.org>1998-09-30 06:41:16 +0000
commit6478b523aaf6e892cb354ddd3b74136f4f24f8ec (patch)
tree832c3deb25ef37d9992f3cada84f38ac36b91fdf /lib/libkse
parentdf42f1ac5f49d30528909286a925e0d7492bc337 (diff)
downloadFreeBSD-src-6478b523aaf6e892cb354ddd3b74136f4f24f8ec.zip
FreeBSD-src-6478b523aaf6e892cb354ddd3b74136f4f24f8ec.tar.gz
Cosmetic cleansing. This code requires extra work to keep the garbage
collector thread running after a fork.
Diffstat (limited to 'lib/libkse')
-rw-r--r--lib/libkse/thread/thr_fork.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_fork.c b/lib/libkse/thread/thr_fork.c
index d56f98d..960c1de 100644
--- a/lib/libkse/thread/thr_fork.c
+++ b/lib/libkse/thread/thr_fork.c
@@ -103,15 +103,16 @@ fork(void)
pthread->nxt = NULL;
} else {
if (pthread->attr.stackaddr_attr ==
- NULL && pthread->stack != NULL) {
+ NULL && pthread->stack != NULL)
/*
* Free the stack of the
* dead thread:
*/
free(pthread->stack);
- }
+
if (pthread->specific_data != NULL)
free(pthread->specific_data);
+
free(pthread);
}
OpenPOWER on IntegriCloud