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
b8777615
Commit
b8777615
authored
Mar 14, 2014
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix refcount issues with mutex protected ignores
Some ignore files were not being freed from the cache.
parent
3816debc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
src/ignore.c
+15
-1
No files found.
src/ignore.c
View file @
b8777615
...
...
@@ -204,9 +204,23 @@ int git_ignore__pop_dir(git_ignores *ign)
void
git_ignore__free
(
git_ignores
*
ignores
)
{
/* don't need to free ignores->ign_internal since it is in cache */
unsigned
int
i
;
git_attr_file
*
file
;
/* don't need to free ignores->ign_internal it is cached exactly once */
git_vector_foreach
(
&
ignores
->
ign_path
,
i
,
file
)
{
git_attr_file__free
(
file
);
ignores
->
ign_path
.
contents
[
i
]
=
NULL
;
}
git_vector_free
(
&
ignores
->
ign_path
);
git_vector_foreach
(
&
ignores
->
ign_global
,
i
,
file
)
{
git_attr_file__free
(
file
);
ignores
->
ign_global
.
contents
[
i
]
=
NULL
;
}
git_vector_free
(
&
ignores
->
ign_global
);
git_buf_free
(
&
ignores
->
dir
);
}
...
...
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