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
e45423dd
Commit
e45423dd
authored
Nov 13, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1065 from nulltoken/fix/memory-leak
Fix memory leaks
parents
d51e54f1
4e547eee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
src/transports/local.c
+1
-0
tests-clar/network/fetchlocal.c
+2
-0
No files found.
src/transports/local.c
View file @
e45423dd
...
...
@@ -227,6 +227,7 @@ static int local_negotiate_fetch(
git_oid_cpy
(
&
rhead
->
loid
,
git_object_id
(
obj
));
else
if
(
error
!=
GIT_ENOTFOUND
)
return
error
;
git_object_free
(
obj
);
giterr_clear
();
}
...
...
tests-clar/network/fetchlocal.c
View file @
e45423dd
...
...
@@ -52,6 +52,8 @@ void test_network_fetchlocal__partial(void)
cl_git_pass
(
git_remote_download
(
origin
,
transfer_cb
,
&
callcount
));
cl_git_pass
(
git_remote_update_tips
(
origin
));
git_strarray_free
(
&
refnames
);
cl_git_pass
(
git_reference_list
(
&
refnames
,
repo
,
GIT_REF_LISTALL
));
cl_assert_equal_i
(
19
,
refnames
.
count
);
/* 18 remote + 1 local */
cl_assert
(
callcount
>
0
);
...
...
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