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
24988894
Commit
24988894
authored
May 10, 2013
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some memory leaks
parent
ae59321f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
tests-clar/clone/nonetwork.c
+2
-0
tests-clar/refs/branches/upstream.c
+2
-1
No files found.
tests-clar/clone/nonetwork.c
View file @
24988894
...
...
@@ -185,6 +185,7 @@ void test_clone_nonetwork__custom_autotag(void)
cl_assert_equal_i
(
GIT_REMOTE_DOWNLOAD_TAGS_NONE
,
origin
->
download_tags
);
git_strarray_free
(
&
tags
);
git_remote_free
(
origin
);
}
void
test_clone_nonetwork__custom_autotag_tags_all
(
void
)
...
...
@@ -199,6 +200,7 @@ void test_clone_nonetwork__custom_autotag_tags_all(void)
cl_assert_equal_i
(
GIT_REMOTE_DOWNLOAD_TAGS_ALL
,
origin
->
download_tags
);
git_strarray_free
(
&
tags
);
git_remote_free
(
origin
);
}
void
test_clone_nonetwork__cope_with_already_existing_directory
(
void
)
...
...
tests-clar/refs/branches/upstream.c
View file @
24988894
...
...
@@ -113,11 +113,12 @@ void test_refs_branches_upstream__set_unset_upstream(void)
cl_git_pass
(
git_config_get_string
(
&
value
,
config
,
"branch.test.merge"
));
cl_assert_equal_s
(
value
,
"refs/heads/master"
);
git_reference_free
(
branch
);
/* local */
cl_git_pass
(
git_reference_lookup
(
&
branch
,
repository
,
"refs/heads/test"
));
cl_git_pass
(
git_branch_set_upstream
(
branch
,
"master"
));
cl_git_pass
(
git_repository_config
(
&
config
,
repository
));
cl_git_pass
(
git_config_get_string
(
&
value
,
config
,
"branch.test.remote"
));
cl_assert_equal_s
(
value
,
"."
);
cl_git_pass
(
git_config_get_string
(
&
value
,
config
,
"branch.test.merge"
));
...
...
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