diff options
Diffstat (limited to 'lib/libkse')
-rw-r--r-- | lib/libkse/thread/thr_fork.c | 5 |
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); } |