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
dab55bef
Commit
dab55bef
authored
Nov 08, 2015
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings and a leak
parent
41dc9f06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
src/odb_mempack.c
+1
-1
tests/revwalk/basic.c
+1
-1
tests/revwalk/mergebase.c
+1
-0
No files found.
src/odb_mempack.c
View file @
dab55bef
...
...
@@ -163,7 +163,7 @@ static void impl__free(git_odb_backend *_backend)
{
struct
memory_packer_db
*
db
=
(
struct
memory_packer_db
*
)
_backend
;
git_mempack_reset
(
db
);
git_mempack_reset
(
(
git_odb_backend
*
)
db
);
git_oidmap_free
(
db
->
objects
);
git__free
(
db
);
...
...
tests/revwalk/basic.c
View file @
dab55bef
...
...
@@ -456,7 +456,7 @@ void test_revwalk_basic__big_timestamp(void)
cl_git_pass
(
git_signature_new
(
&
sig
,
"Joe"
,
"joe@example.com"
,
2399662595
,
0
));
cl_git_pass
(
git_commit_tree
(
&
tree
,
tip
));
cl_git_pass
(
git_commit_create
(
&
id
,
_repo
,
"HEAD"
,
sig
,
sig
,
NULL
,
"some message"
,
tree
,
1
,
&
tip
));
cl_git_pass
(
git_commit_create
(
&
id
,
_repo
,
"HEAD"
,
sig
,
sig
,
NULL
,
"some message"
,
tree
,
1
,
(
const
git_commit
**
)
&
tip
));
cl_git_pass
(
git_revwalk_push_head
(
_walk
));
...
...
tests/revwalk/mergebase.c
View file @
dab55bef
...
...
@@ -509,5 +509,6 @@ void test_revwalk_mergebase__remove_redundant(void)
cl_assert_equal_i
(
1
,
result
.
count
);
cl_assert_equal_oid
(
&
base
,
&
result
.
ids
[
0
]);
git_oidarray_free
(
&
result
);
git_repository_free
(
repo
);
}
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