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
b63b3b0e
Commit
b63b3b0e
authored
Jan 25, 2015
by
Jacques Germishuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure git_index_entry is not NULL before trying to free it
parent
73c5db76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/index.c
+3
-0
No files found.
src/index.c
View file @
b63b3b0e
...
...
@@ -292,6 +292,9 @@ static void index_entry_reuc_free(git_index_reuc_entry *reuc)
static
void
index_entry_free
(
git_index_entry
*
entry
)
{
if
(
!
entry
)
return
;
memset
(
&
entry
->
id
,
0
,
sizeof
(
entry
->
id
));
git__free
(
entry
);
}
...
...
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