diff options
author | 1999-11-30 04:59:42 +0000 | |
---|---|---|
committer | 1999-11-30 04:59:42 +0000 | |
commit | d27ce5baefde6f39d3edef0f4424ae7d71ff96f8 (patch) | |
tree | 3e9b25865e68b566d1a8a8771a55c80463aaa911 /lib/libpthread | |
parent | clean up the poll fdsets in the garbage collector, not in exit() (diff) | |
download | wireguard-openbsd-d27ce5baefde6f39d3edef0f4424ae7d71ff96f8.tar.xz wireguard-openbsd-d27ce5baefde6f39d3edef0f4424ae7d71ff96f8.zip |
garbage collect thread-specific data
Diffstat (limited to 'lib/libpthread')
-rw-r--r-- | lib/libpthread/uthread/uthread_gc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libpthread/uthread/uthread_gc.c b/lib/libpthread/uthread/uthread_gc.c index 31975b68621..af78d0f6f98 100644 --- a/lib/libpthread/uthread/uthread_gc.c +++ b/lib/libpthread/uthread/uthread_gc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_gc.c,v 1.7 1999/11/30 04:53:24 d Exp $ */ +/* $OpenBSD: uthread_gc.c,v 1.8 1999/11/30 04:59:42 d Exp $ */ /* * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -203,6 +203,9 @@ _thread_gc(pthread_addr_t arg) if (pthread_cln->poll_data.fds != NULL) free(pthread_cln->poll_data.fds); + if (pthread_cln->specific_data != NULL) + free(pthread_cln->specific_data); + free(pthread_cln); } } |