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
39157563
Commit
39157563
authored
Nov 22, 2011
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Free the created refs in git_remote_update_tips
parent
a3147114
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/remote.c
+3
-0
No files found.
src/remote.c
View file @
39157563
...
...
@@ -261,6 +261,7 @@ int git_remote_update_tips(git_remote *remote)
if
(
!
strcmp
(
head
->
name
,
GIT_HEAD_FILE
))
{
error
=
git_reference_create_oid
(
&
ref
,
remote
->
repo
,
GIT_FETCH_HEAD_FILE
,
&
head
->
oid
,
1
);
i
=
1
;
git_reference_free
(
ref
);
if
(
error
<
GIT_SUCCESS
)
return
git__rethrow
(
error
,
"Failed to update FETCH_HEAD"
);
}
...
...
@@ -275,6 +276,8 @@ int git_remote_update_tips(git_remote *remote)
error
=
git_reference_create_oid
(
&
ref
,
remote
->
repo
,
refname
,
&
head
->
oid
,
1
);
if
(
error
<
GIT_SUCCESS
)
return
error
;
git_reference_free
(
ref
);
}
return
GIT_SUCCESS
;
...
...
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