Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
张亚俊
libgit2
Commits
a8846da7
Commit
a8846da7
authored
10 years ago
by
Edward Thomson
Browse files
Options
Downloads
Patches
Plain Diff
remote: plug leak
parent
1646412d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/remote.c
+5
-5
src/remote.c
with
5 additions
and
5 deletions
src/remote.c
+
5
−
5
View file @
a8846da7
...
...
@@ -139,7 +139,7 @@ static int canonicalize_url(git_buf *out, const char *in)
static
int
create_internal
(
git_remote
**
out
,
git_repository
*
repo
,
const
char
*
name
,
const
char
*
url
,
const
char
*
fetch
)
{
git_remote
*
remote
;
git_config
*
config
;
git_config
*
config
=
NULL
;
git_buf
canonical_url
=
GIT_BUF_INIT
,
fetchbuf
=
GIT_BUF_INIT
;
int
error
=
-
1
;
...
...
@@ -183,12 +183,12 @@ static int create_internal(git_remote **out, git_repository *repo, const char *n
remote
->
download_tags
=
GIT_REMOTE_DOWNLOAD_TAGS_NONE
;
*
out
=
remote
;
git_buf_free
(
&
fetchbuf
);
git_buf_free
(
&
canonical_url
);
return
0
;
error
=
0
;
on_error:
git_remote_free
(
remote
);
if
(
error
)
git_remote_free
(
remote
);
git_config_free
(
config
);
git_buf_free
(
&
fetchbuf
);
git_buf_free
(
&
canonical_url
);
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets