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
2f7538ec
Commit
2f7538ec
authored
Nov 06, 2012
by
Philip Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix connection leak in http subtransport
parent
091361f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/netops.c
+6
-3
src/transports/http.c
+3
-0
No files found.
src/netops.c
View file @
2f7538ec
...
...
@@ -193,16 +193,19 @@ void gitno_consume_n(gitno_buffer *buf, size_t cons)
static
int
gitno_ssl_teardown
(
gitno_ssl
*
ssl
)
{
int
ret
;
do
{
ret
=
SSL_shutdown
(
ssl
->
ssl
);
}
while
(
ret
==
0
);
if
(
ret
<
0
)
return
ssl_set_error
(
ssl
,
ret
);
ret
=
ssl_set_error
(
ssl
,
ret
);
else
ret
=
0
;
SSL_free
(
ssl
->
ssl
);
SSL_CTX_free
(
ssl
->
ctx
);
return
0
;
return
ret
;
}
/* Match host names according to RFC 2818 rules */
...
...
src/transports/http.c
View file @
2f7538ec
...
...
@@ -606,6 +606,9 @@ static void http_free(git_smart_subtransport *smart_transport)
clear_parser_state
(
t
);
if
(
t
->
socket
.
socket
)
gitno_close
(
&
t
->
socket
);
if
(
t
->
cred
)
{
t
->
cred
->
free
(
t
->
cred
);
t
->
cred
=
NULL
;
...
...
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