summaryrefslogtreecommitdiff
path: root/rts/posix/OSThreads.c
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-02-23 12:23:12 +0000
committerIan Lynagh <igloo@earth.li>2007-02-23 12:23:12 +0000
commite1dddcb3ebc7a3365cf22592d2c162039dfb6ce4 (patch)
treebeb49b1b4047e0be007891f37c519025f2038f93 /rts/posix/OSThreads.c
parent728cfb0158aa4f0a663ee2e613f6874ffd240d72 (diff)
downloadhaskell-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.c2
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));
}
}