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
feb13aed
Commit
feb13aed
authored
Jun 11, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_signature: fix memory leaks in error cases
Fixes CIDs 1403234 and 1403235
parent
a5b5ce26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vf_signature.c
libavfilter/vf_signature.c
+4
-1
No files found.
libavfilter/vf_signature.c
View file @
feb13aed
...
...
@@ -260,8 +260,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref)
if
(
!
elemsignature
)
return
AVERROR
(
ENOMEM
);
sortsignature
=
av_malloc_array
(
elemcat
->
elem_count
,
sizeof
(
int64_t
));
if
(
!
sortsignature
)
if
(
!
sortsignature
)
{
av_freep
(
&
elemsignature
);
return
AVERROR
(
ENOMEM
);
}
for
(
j
=
0
;
j
<
elemcat
->
elem_count
;
j
++
)
{
blocksum
=
0
;
...
...
@@ -508,6 +510,7 @@ static int binary_export(AVFilterContext *ctx, StreamContext *sc, const char* fi
char
buf
[
128
];
av_strerror
(
err
,
buf
,
sizeof
(
buf
));
av_log
(
ctx
,
AV_LOG_ERROR
,
"cannot open file %s: %s
\n
"
,
filename
,
buf
);
av_freep
(
&
buffer
);
return
err
;
}
init_put_bits
(
&
buf
,
buffer
,
len
);
...
...
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