Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
ff9ec7d2
Commit
ff9ec7d2
authored
Dec 14, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
https: fix memory leak
parent
ee50c987
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/access/http/h2frame.c
modules/access/http/h2frame.c
+8
-1
No files found.
modules/access/http/h2frame.c
View file @
ff9ec7d2
...
...
@@ -528,8 +528,8 @@ static int vlc_h2_parse_headers_end(struct vlc_h2_parser *p)
{
for
(
unsigned
i
=
0
;
i
<
VLC_H2_MAX_HEADERS
;
i
++
)
{
free
(
headers
[
i
][
1
]);
free
(
headers
[
i
][
0
]);
free
(
headers
[
i
][
1
]);
}
val
=
-
1
;
}
...
...
@@ -543,10 +543,17 @@ static int vlc_h2_parse_headers_end(struct vlc_h2_parser *p)
val
=
0
;
}
else
{
for
(
int
i
=
0
;
i
<
val
;
i
++
)
{
free
(
headers
[
i
][
0
]);
free
(
headers
[
i
][
1
]);
}
/* NOTE: The specification implies that the error should also be sent
* for non-last header/continuation frames, but this does not make much
* sense. */
val
=
vlc_h2_stream_error
(
p
,
p
->
headers
.
sid
,
VLC_H2_REFUSED_STREAM
);
}
if
(
p
->
headers
.
eos
&&
s
!=
NULL
)
p
->
cbs
->
stream_end
(
s
);
...
...
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