Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
8501c098
Commit
8501c098
authored
Oct 09, 2012
by
Janne Grunau
Browse files
af_amix: prevent memory leak on error path
Fixes CID732272.
parent
6f8ef532
Changes
1
Hide whitespace changes
Inline
Side-by-side
libavfilter/af_amix.c
View file @
8501c098
...
...
@@ -285,8 +285,10 @@ static int output_frame(AVFilterLink *outlink, int nb_samples)
return
AVERROR
(
ENOMEM
);
in_buf
=
ff_get_audio_buffer
(
outlink
,
AV_PERM_WRITE
,
nb_samples
);
if
(
!
in_buf
)
if
(
!
in_buf
)
{
avfilter_unref_buffer
(
out_buf
);
return
AVERROR
(
ENOMEM
);
}
for
(
i
=
0
;
i
<
s
->
nb_inputs
;
i
++
)
{
if
(
s
->
input_state
[
i
]
==
INPUT_ON
)
{
...
...
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