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
232dd4de
Unverified
Commit
232dd4de
authored
Apr 20, 2018
by
Patrick Steinhardt
Committed by
GitHub
Apr 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4635 from tiennou/fix/leaks-v0.27.1
Leak fixes for v0.27.1
parents
8d138f89
df4937b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
src/remote.c
+1
-1
src/transports/local.c
+3
-1
src/worktree.c
+1
-1
No files found.
src/remote.c
View file @
232dd4de
...
...
@@ -237,7 +237,7 @@ static int create_internal(git_remote **out, git_repository *repo, const char *n
goto
on_error
;
/* only write for non-anonymous remotes */
if
(
name
&&
(
error
=
write_add_refspec
(
repo
,
name
,
fetch
,
true
))
<
0
)
if
(
repo
&&
name
&&
(
error
=
write_add_refspec
(
repo
,
name
,
fetch
,
true
))
<
0
)
goto
on_error
;
if
(
repo
&&
(
error
=
lookup_remote_prune_config
(
remote
,
config_ro
,
name
))
<
0
)
...
...
src/transports/local.c
View file @
232dd4de
...
...
@@ -512,8 +512,10 @@ static int foreach_reference_cb(git_reference *reference, void *payload)
git_revwalk
*
walk
=
(
git_revwalk
*
)
payload
;
int
error
;
if
(
git_reference_type
(
reference
)
!=
GIT_REF_OID
)
if
(
git_reference_type
(
reference
)
!=
GIT_REF_OID
)
{
git_reference_free
(
reference
);
return
0
;
}
error
=
git_revwalk_hide
(
walk
,
git_reference_target
(
reference
));
/* The reference is in the local repository, so the target may not
...
...
src/worktree.c
View file @
232dd4de
...
...
@@ -131,7 +131,7 @@ static int open_worktree_dir(git_worktree **out, const char *parent, const char
goto
out
;
}
if
((
wt
=
git__calloc
(
1
,
sizeof
(
struct
git_repository
)))
==
NULL
)
{
if
((
wt
=
git__calloc
(
1
,
sizeof
(
*
wt
)))
==
NULL
)
{
error
=
-
1
;
goto
out
;
}
...
...
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