diff options
author | Ian Lynagh <igloo@earth.li> | 2007-02-23 12:23:12 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-02-23 12:23:12 +0000 |
commit | e1dddcb3ebc7a3365cf22592d2c162039dfb6ce4 (patch) | |
tree | beb49b1b4047e0be007891f37c519025f2038f93 /rts/posix/OSThreads.c | |
parent | 728cfb0158aa4f0a663ee2e613f6874ffd240d72 (diff) | |
download | haskell-e1dddcb3ebc7a3365cf22592d2c162039dfb6ce4.tar.gz |
pthread_key_delete wants the key itself, not a pointer to it
Diffstat (limited to 'rts/posix/OSThreads.c')
-rw-r--r-- | rts/posix/OSThreads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c index 6b6fa5cf6d..510a51d445 100644 --- a/rts/posix/OSThreads.c +++ b/rts/posix/OSThreads.c @@ -152,7 +152,7 @@ void freeThreadLocalKey (ThreadLocalKey *key) { int r; - if ((r = pthread_key_delete(key)) != 0) { + if ((r = pthread_key_delete(*key)) != 0) { barf("freeThreadLocalKey: %s", strerror(r)); } } |