-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HACK "memory leak" of ly_errno in main thread
It wasn't actually a real memory leak, there was just still reachable dynamically allocated memory on process exit, because the destructor registered by pthread_key_create() in the main thread isn't executed on process termination but only on thread termination (i.e. on pthread_exit()). So, on Linux, we are going to use static memory for the main thread's ly_errno. Fixes #15
- Loading branch information
Showing
1 changed file
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters