Skip to content
Browse files

Fixed a very bad typo (freeing non-owned TLS slots)

  • Loading branch information...
1 parent f4c0541 commit e5dc25a561a0d1933518e9f39d2b2156ac7809b6 @akovalenko akovalenko committed with
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/runtime/win32-os.c
View
2 src/runtime/win32-os.c
@@ -265,7 +265,7 @@ void os_preinit()
slots[n_slots++]=key;
}
for (i=0; i<n_slots; ++i) {
- TlsFree(i);
+ TlsFree(slots[i]);
}
if (key!=OUR_TLS_INDEX) {
lose("TLS slot assertion failed: slot 63 is unavailable "

0 comments on commit e5dc25a

Please sign in to comment.
Something went wrong with that request. Please try again.