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
cdca82c7
Commit
cdca82c7
authored
Jun 20, 2012
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plug a few leaks
parent
c3ce8d0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
src/revparse.c
+2
-0
tests-clar/core/env.c
+2
-0
tests-clar/diff/workdir.c
+2
-0
No files found.
src/revparse.c
View file @
cdca82c7
...
...
@@ -552,6 +552,7 @@ static int oid_for_tree_path(git_oid *out, git_tree *tree, git_repository *repo,
if
(
!
entry
)
{
giterr_set
(
GITERR_INVALID
,
"Invalid tree path '%s'"
,
path
);
git__free
(
alloc
);
return
GIT_ERROR
;
}
...
...
@@ -622,6 +623,7 @@ static int revparse_global_grep(git_object **out, git_repository *repo, const ch
}
if
(
!
resultobj
)
{
giterr_set
(
GITERR_REFERENCE
,
"Couldn't find a match for %s"
,
pattern
);
git_object_free
(
walkobj
);
}
else
{
*
out
=
resultobj
;
}
...
...
tests-clar/core/env.c
View file @
cdca82c7
...
...
@@ -112,4 +112,6 @@ void test_core_env__1(void)
cl_assert
(
git_futils_find_system_file
(
&
path
,
"nonexistentfile"
)
==
-
1
);
#endif
git_buf_free
(
&
path
);
}
tests-clar/diff/workdir.c
View file @
cdca82c7
...
...
@@ -409,6 +409,8 @@ void test_diff_workdir__head_index_and_workdir_all_differ(void)
git_diff_list_free
(
diff_i2t
);
git_diff_list_free
(
diff_w2i
);
git_tree_free
(
tree
);
}
void
test_diff_workdir__eof_newline_changes
(
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