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
ced39dc5
Commit
ced39dc5
authored
Nov 22, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/opusdec: Fix a memleak when reading invalid files.
Reviewed-by: James Almer
parent
f5074dd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
opusdec.c
libavcodec/opusdec.c
+4
-1
No files found.
libavcodec/opusdec.c
View file @
ced39dc5
...
...
@@ -671,8 +671,11 @@ static av_cold int opus_decode_init(AVCodecContext *avctx)
/* find out the channel configuration */
ret
=
ff_opus_parse_extradata
(
avctx
,
c
);
if
(
ret
<
0
)
if
(
ret
<
0
)
{
av_freep
(
&
c
->
channel_maps
);
av_freep
(
&
c
->
fdsp
);
return
ret
;
}
/* allocate and init each independent decoder */
c
->
streams
=
av_mallocz_array
(
c
->
nb_streams
,
sizeof
(
*
c
->
streams
));
...
...
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