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
f4afcaa0
Commit
f4afcaa0
authored
Mar 26, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2209 from ethomson/cleanup
Cleanup some warnings and mem leaks
parents
dc7efa1a
9cb99e8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/merge.c
+1
-2
tests/revwalk/hidecb.c
+9
-0
No files found.
src/merge.c
View file @
f4afcaa0
...
...
@@ -2629,9 +2629,8 @@ int git_merge(
on_error:
merge_state_cleanup
(
repo
);
git_index_free
(
index_new
);
done:
git_index_free
(
index_new
);
git_index_free
(
index_repo
);
git_tree_free
(
ancestor_tree
);
...
...
tests/revwalk/hidecb.c
View file @
f4afcaa0
...
...
@@ -48,18 +48,27 @@ void test_revwalk_hidecb__cleanup(void)
/* Hide all commits */
static
int
hide_every_commit_cb
(
const
git_oid
*
commit_id
,
void
*
data
)
{
GIT_UNUSED
(
commit_id
);
GIT_UNUSED
(
data
);
return
1
;
}
/* Do not hide anything */
static
int
hide_none_cb
(
const
git_oid
*
commit_id
,
void
*
data
)
{
GIT_UNUSED
(
commit_id
);
GIT_UNUSED
(
data
);
return
0
;
}
/* Hide some commits */
static
int
hide_commit_cb
(
const
git_oid
*
commit_id
,
void
*
data
)
{
GIT_UNUSED
(
commit_id
);
GIT_UNUSED
(
data
);
if
(
0
==
git_oid_cmp
(
commit_id
,
&
commit_ids
[
5
]))
return
1
;
else
...
...
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