diff options
Diffstat (limited to 'src/alloc-override-win.c')
-rw-r--r-- | src/alloc-override-win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc-override-win.c b/src/alloc-override-win.c index 3e0caf2..fc50777 100644 --- a/src/alloc-override-win.c +++ b/src/alloc-override-win.c @@ -34,7 +34,7 @@ by us is freed after we unpatched. There are two tricky situations to deal with: -1. The Thread Local Storage (TLS): when the main thead stops it will call registered +1. The Thread Local Storage (TLS): when the main thread stops it will call registered callbacks on TLS entries (allocated by `FlsAlloc`). This is done by the OS before any DLL's are unloaded. Unfortunately, the C runtime registers such TLS entries with CRT allocated memory which is freed in the callback. |