Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
3a8b69d1
Commit
3a8b69d1
authored
Feb 26, 2015
by
Leo Yang
Committed by
Carlos Martín Nieto
Mar 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leak of TLS error message in shutdown (ptherad version)
parent
814d86bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/global.c
+3
-3
No files found.
src/global.c
View file @
3a8b69d1
...
@@ -263,9 +263,7 @@ int init_error = 0;
...
@@ -263,9 +263,7 @@ int init_error = 0;
static
void
cb__free_status
(
void
*
st
)
static
void
cb__free_status
(
void
*
st
)
{
{
git_global_st
*
state
=
(
git_global_st
*
)
st
;
giterr_clear
();
git__free
(
state
->
error_t
.
message
);
git__free
(
st
);
git__free
(
st
);
}
}
...
@@ -308,6 +306,8 @@ int git_libgit2_shutdown(void)
...
@@ -308,6 +306,8 @@ int git_libgit2_shutdown(void)
/* Shut down any subsystems that have global state */
/* Shut down any subsystems that have global state */
git__shutdown
();
git__shutdown
();
giterr_clear
();
ptr
=
pthread_getspecific
(
_tls_key
);
ptr
=
pthread_getspecific
(
_tls_key
);
pthread_setspecific
(
_tls_key
,
NULL
);
pthread_setspecific
(
_tls_key
,
NULL
);
git__free
(
ptr
);
git__free
(
ptr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment