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
6e9b060e
Commit
6e9b060e
authored
Dec 03, 2014
by
Benoit Fouet
Committed by
Michael Niedermayer
Dec 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/pngdec: fix mem leak in init()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
08aec6f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
pngdec.c
libavcodec/pngdec.c
+5
-1
No files found.
libavcodec/pngdec.c
View file @
6e9b060e
...
...
@@ -1237,8 +1237,12 @@ static av_cold int png_dec_init(AVCodecContext *avctx)
s
->
previous_picture
.
f
=
av_frame_alloc
();
s
->
last_picture
.
f
=
av_frame_alloc
();
s
->
picture
.
f
=
av_frame_alloc
();
if
(
!
s
->
previous_picture
.
f
||
!
s
->
last_picture
.
f
||
!
s
->
picture
.
f
)
if
(
!
s
->
previous_picture
.
f
||
!
s
->
last_picture
.
f
||
!
s
->
picture
.
f
)
{
av_frame_free
(
&
s
->
previous_picture
.
f
);
av_frame_free
(
&
s
->
last_picture
.
f
);
av_frame_free
(
&
s
->
picture
.
f
);
return
AVERROR
(
ENOMEM
);
}
if
(
!
avctx
->
internal
->
is_copy
)
{
avctx
->
internal
->
allocate_progress
=
1
;
...
...
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