diff options
| author | Jeff Hostetler <jeffhost@microsoft.com> | 2015-04-17 09:58:09 -0400 |
|---|---|---|
| committer | Jeff Hostetler <jeffhost@microsoft.com> | 2015-04-17 09:58:09 -0400 |
| commit | f5ffb40e2b7f0ba1a0d6494037cfa2c24dd30c47 (patch) | |
| tree | 6962dcf305a52a0a3f6f4448f84e35cda51a9855 /src/global.c | |
| parent | 55c5f756d80cb762fa21054c7460359424428668 (diff) | |
| download | libgit2-f5ffb40e2b7f0ba1a0d6494037cfa2c24dd30c47.tar.gz | |
Also fix leak of TLS data on main thread.
Diffstat (limited to 'src/global.c')
| -rw-r--r-- | src/global.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/global.c b/src/global.c index 3c97e62e6..0772bb0af 100644 --- a/src/global.c +++ b/src/global.c @@ -223,13 +223,10 @@ int git_libgit2_init(void) static void synchronized_threads_shutdown(void) { - void *ptr; - /* Shut down any subsystems that have global state */ git__shutdown(); - ptr = TlsGetValue(_tls_index); - git__global_state_cleanup(ptr); + git__free_thread_global_state(); TlsFree(_tls_index); git_mutex_free(&git__mwindow_mutex); |
