summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_fork.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-03-19 22:58:56 +0000
committerdeischen <deischen@FreeBSD.org>2002-03-19 22:58:56 +0000
commitf36956581759863bfd4e05c77c234e512834ebd4 (patch)
tree64a520af93e4e04f24e730bf2a51ce6ccb8ad724 /lib/libc_r/uthread/uthread_fork.c
parentc8ef9d9122863cc158177add839c76b14d92aa66 (diff)
downloadFreeBSD-src-f36956581759863bfd4e05c77c234e512834ebd4.zip
FreeBSD-src-f36956581759863bfd4e05c77c234e512834ebd4.tar.gz
Add the ability to recognize old references to keys, and return NULL
when old keys are referenced (after pthread_key_delete()) via pthread_getspecific().
Diffstat (limited to 'lib/libc_r/uthread/uthread_fork.c')
-rw-r--r--lib/libc_r/uthread/uthread_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_fork.c b/lib/libc_r/uthread/uthread_fork.c
index 9d9a647..dd6d3ff 100644
--- a/lib/libc_r/uthread/uthread_fork.c
+++ b/lib/libc_r/uthread/uthread_fork.c
@@ -233,8 +233,8 @@ free_thread_resources(struct pthread *thread)
thread->attr.guardsize_attr);
}
- if (thread->specific_data != NULL)
- free(thread->specific_data);
+ if (thread->specific != NULL)
+ free(thread->specific);
if (thread->poll_data.fds != NULL)
free(thread->poll_data.fds);
OpenPOWER on IntegriCloud