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
e6ea4c71
Commit
e6ea4c71
authored
Sep 01, 2011
by
Chiranjeevi Melam
Committed by
Michael Niedermayer
Sep 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Fix minor memleak of input_tmp
parent
94c2478d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ffmpeg.c
ffmpeg.c
+4
-1
No files found.
ffmpeg.c
View file @
e6ea4c71
...
...
@@ -232,6 +232,8 @@ static AVBitStreamFilterContext *video_bitstream_filters=NULL;
static
AVBitStreamFilterContext
*
audio_bitstream_filters
=
NULL
;
static
AVBitStreamFilterContext
*
subtitle_bitstream_filters
=
NULL
;
static
uint8_t
*
input_tmp
=
NULL
;
#define DEFAULT_PASS_LOGFILENAME_PREFIX "ffmpeg2pass"
typedef
struct
InputStream
{
...
...
@@ -557,6 +559,8 @@ static int exit_program(int ret)
avfilter_uninit
();
#endif
av_freep
(
&
input_tmp
);
if
(
received_sigterm
)
{
fprintf
(
stderr
,
"Received signal %d: terminating.
\n
"
,
...
...
@@ -840,7 +844,6 @@ need_realloc:
return
;
ist
->
is_start
=
0
;
}
else
{
static
uint8_t
*
input_tmp
=
NULL
;
input_tmp
=
av_realloc
(
input_tmp
,
byte_delta
+
size
);
if
(
byte_delta
>
allocated_for_size
-
size
){
...
...
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