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
6cb7966d
Commit
6cb7966d
authored
Feb 10, 2023
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clone: free connect opts
parent
8eadeede
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
src/libgit2/clone.c
+1
-0
src/libgit2/remote.h
+8
-0
No files found.
src/libgit2/clone.c
View file @
6cb7966d
...
@@ -447,6 +447,7 @@ static int clone_into(
...
@@ -447,6 +447,7 @@ static int clone_into(
cleanup:
cleanup:
git_remote_free
(
remote
);
git_remote_free
(
remote
);
git_remote_connect_options_dispose
(
&
connect_opts
);
git_str_dispose
(
&
reflog_message
);
git_str_dispose
(
&
reflog_message
);
return
error
;
return
error
;
...
...
src/libgit2/remote.h
View file @
6cb7966d
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include "refspec.h"
#include "refspec.h"
#include "vector.h"
#include "vector.h"
#include "net.h"
#include "net.h"
#include "proxy.h"
#define GIT_REMOTE_ORIGIN "origin"
#define GIT_REMOTE_ORIGIN "origin"
...
@@ -89,4 +90,11 @@ GIT_INLINE(int) git_remote_connect_options__from_push_opts(
...
@@ -89,4 +90,11 @@ GIT_INLINE(int) git_remote_connect_options__from_push_opts(
#undef git_remote_connect_options__copy_opts
#undef git_remote_connect_options__copy_opts
GIT_INLINE
(
void
)
git_remote_connect_options__dispose
(
git_remote_connect_options
*
opts
)
{
git_proxy_options_dispose
(
&
opts
->
proxy_opts
);
git_strarray_dispose
(
&
opts
->
custom_headers
);
}
#endif
#endif
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