Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
331fae80
Commit
331fae80
authored
Nov 22, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/mss1: fix mem leak in case of init failure
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki2@gmail.com
>
parent
305b0309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mss1.c
libavcodec/mss1.c
+2
-0
No files found.
libavcodec/mss1.c
View file @
331fae80
...
...
@@ -197,6 +197,8 @@ static av_cold int mss1_decode_init(AVCodecContext *avctx)
return
AVERROR
(
ENOMEM
);
ret
=
ff_mss12_decode_init
(
&
c
->
ctx
,
0
,
&
c
->
sc
,
NULL
);
if
(
ret
<
0
)
av_frame_free
(
&
c
->
pic
);
avctx
->
pix_fmt
=
AV_PIX_FMT_PAL8
;
...
...
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