diff options
| author | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-08-30 15:45:42 +0000 |
|---|---|---|
| committer | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-08-30 15:45:42 +0000 |
| commit | ffd73a00434b06093c1923e4179358628b3cd103 (patch) | |
| tree | 06a1448142b6e517580674b0d6769b5168a926e2 /lib/libpthread/thread/thr_exit.c | |
| parent | df6cb0046a373939e0881ceac6524b7ae0f81f82 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
| -rw-r--r-- | lib/libpthread/thread/thr_exit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c index c9894435748d..795decce0b4f 100644 --- a/lib/libpthread/thread/thr_exit.c +++ b/lib/libpthread/thread/thr_exit.c @@ -134,6 +134,12 @@ pthread_exit(void *status) _thread_cleanupspecific(); } + /* Free thread-specific poll_data structure, if allocated */ + if (_thread_run->poll_data.fds != NULL) { + free(_thread_run->poll_data.fds); + _thread_run->poll_data.fds = NULL; + } + /* * Defer signals to protect the scheduling queues from access * by the signal handler: |
