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
80876320
Commit
80876320
authored
Feb 18, 2015
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/showpalette: fix leak in case of error
Fixes CID1270820 Fixes CID1270818
parent
80f44eaf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vf_showpalette.c
libavfilter/vf_showpalette.c
+4
-1
No files found.
libavfilter/vf_showpalette.c
View file @
80876320
...
...
@@ -48,8 +48,11 @@ static int query_formats(AVFilterContext *ctx)
static
const
enum
AVPixelFormat
out_fmts
[]
=
{
AV_PIX_FMT_RGB32
,
AV_PIX_FMT_NONE
};
AVFilterFormats
*
in
=
ff_make_format_list
(
in_fmts
);
AVFilterFormats
*
out
=
ff_make_format_list
(
out_fmts
);
if
(
!
in
||
!
out
)
if
(
!
in
||
!
out
)
{
av_freep
(
&
in
);
av_freep
(
&
out
);
return
AVERROR
(
ENOMEM
);
}
ff_formats_ref
(
in
,
&
ctx
->
inputs
[
0
]
->
out_formats
);
ff_formats_ref
(
out
,
&
ctx
->
outputs
[
0
]
->
in_formats
);
return
0
;
...
...
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