mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 18:11:43 +00:00
Also fix leak of TLS data on main thread.
This commit is contained in:
parent
55c5f756d8
commit
f5ffb40e2b
@ -223,13 +223,10 @@ int git_libgit2_init(void)
|
|||||||
|
|
||||||
static void synchronized_threads_shutdown(void)
|
static void synchronized_threads_shutdown(void)
|
||||||
{
|
{
|
||||||
void *ptr;
|
|
||||||
|
|
||||||
/* Shut down any subsystems that have global state */
|
/* Shut down any subsystems that have global state */
|
||||||
git__shutdown();
|
git__shutdown();
|
||||||
|
|
||||||
ptr = TlsGetValue(_tls_index);
|
git__free_thread_global_state();
|
||||||
git__global_state_cleanup(ptr);
|
|
||||||
|
|
||||||
TlsFree(_tls_index);
|
TlsFree(_tls_index);
|
||||||
git_mutex_free(&git__mwindow_mutex);
|
git_mutex_free(&git__mwindow_mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user