Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
56f7deba
Commit
56f7deba
authored
Sep 07, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Fix resource leak
parent
92a6549f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/shrpx_spdy_downstream_connection.cc
src/shrpx_spdy_downstream_connection.cc
+3
-4
No files found.
src/shrpx_spdy_downstream_connection.cc
View file @
56f7deba
...
...
@@ -236,7 +236,7 @@ int SpdyDownstreamConnection::push_request_headers()
// 10 means :method, :scheme, :path and possible via and
// x-forwarded-for header fields. We rename host header field as
// :host.
const
char
**
nv
=
new
const
char
*
[
nheader
*
2
+
10
+
1
]
;
auto
nv
=
util
::
make_unique
<
const
char
*
[]
>
(
nheader
*
2
+
10
+
1
)
;
size_t
hdidx
=
0
;
std
::
string
via_value
;
std
::
string
xff_value
;
...
...
@@ -363,11 +363,10 @@ int SpdyDownstreamConnection::push_request_headers()
nghttp2_data_provider
data_prd
;
data_prd
.
source
.
ptr
=
this
;
data_prd
.
read_callback
=
spdy_data_read_callback
;
rv
=
spdy_
->
submit_request
(
this
,
0
,
nv
,
&
data_prd
);
rv
=
spdy_
->
submit_request
(
this
,
0
,
nv
.
get
()
,
&
data_prd
);
}
else
{
rv
=
spdy_
->
submit_request
(
this
,
0
,
nv
,
0
);
rv
=
spdy_
->
submit_request
(
this
,
0
,
nv
.
get
()
,
0
);
}
delete
[]
nv
;
if
(
rv
!=
0
)
{
DCLOG
(
FATAL
,
this
)
<<
"nghttp2_submit_request() failed"
;
return
-
1
;
...
...
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