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
cdd71711
Commit
cdd71711
authored
Oct 13, 2014
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up some memory leaks
parent
369b0217
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
src/remote.c
+1
-0
tests/index/cache.c
+2
-0
No files found.
src/remote.c
View file @
cdd71711
...
@@ -1255,6 +1255,7 @@ static int opportunistic_updates(const git_remote *remote, git_vector *refs, con
...
@@ -1255,6 +1255,7 @@ static int opportunistic_updates(const git_remote *remote, git_vector *refs, con
error
=
git_reference_create
(
&
ref
,
remote
->
repo
,
refname
.
ptr
,
&
head
->
oid
,
true
,
sig
,
msg
);
error
=
git_reference_create
(
&
ref
,
remote
->
repo
,
refname
.
ptr
,
&
head
->
oid
,
true
,
sig
,
msg
);
git_buf_free
(
&
refname
);
git_buf_free
(
&
refname
);
git_reference_free
(
ref
);
if
(
error
<
0
)
if
(
error
<
0
)
return
error
;
return
error
;
...
...
tests/index/cache.c
View file @
cdd71711
...
@@ -170,6 +170,8 @@ void test_index_cache__two_levels(void)
...
@@ -170,6 +170,8 @@ void test_index_cache__two_levels(void)
tree_cache
=
git_tree_cache_get
(
index
->
tree
,
"subdir"
);
tree_cache
=
git_tree_cache_get
(
index
->
tree
,
"subdir"
);
cl_assert
(
tree_cache
);
cl_assert
(
tree_cache
);
cl_assert_equal_i
(
1
,
tree_cache
->
entry_count
);
cl_assert_equal_i
(
1
,
tree_cache
->
entry_count
);
git_index_free
(
index
);
}
}
void
test_index_cache__read_tree_children
(
void
)
void
test_index_cache__read_tree_children
(
void
)
...
...
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