summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_fork.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-09-30 06:41:16 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-09-30 06:41:16 +0000
commitd3bb66886ddf1b74a92a465f3d7a07f1f2072509 (patch)
treee1a4c0a5b48b19f0aaf1100f28dd65b8b675c54e /lib/libpthread/thread/thr_fork.c
parentdc3a8b52c0f870cb23ddea843431bacca03fc629 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_fork.c')
-rw-r--r--lib/libpthread/thread/thr_fork.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_fork.c b/lib/libpthread/thread/thr_fork.c
index d56f98d166f2..960c1dea7da3 100644
--- a/lib/libpthread/thread/thr_fork.c
+++ b/lib/libpthread/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);
}