Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
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
Linshizhi
ffmpeg.wasm-core
Commits
0e482a8e
Commit
0e482a8e
authored
Nov 13, 2012
by
Clément Bœsch
Committed by
Clément Bœsch
Nov 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffserver: fix streams and priv_data memleaks when closing a connection.
parent
a9b1536a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ffserver.c
ffserver.c
+2
-0
No files found.
ffserver.c
View file @
0e482a8e
...
...
@@ -929,6 +929,8 @@ static void close_connection(HTTPContext *c)
for
(
i
=
0
;
i
<
ctx
->
nb_streams
;
i
++
)
av_free
(
ctx
->
streams
[
i
]);
av_freep
(
&
ctx
->
streams
);
av_freep
(
&
ctx
->
priv_data
);
if
(
c
->
stream
&&
!
c
->
post
&&
c
->
stream
->
stream_type
==
STREAM_TYPE_LIVE
)
current_bandwidth
-=
c
->
stream
->
bandwidth
;
...
...
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