Commit e1dddcb3 authored by Ian Lynagh's avatar Ian Lynagh

pthread_key_delete wants the key itself, not a pointer to it

parent 728cfb01
......@@ -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));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment