Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
a9ac9434
Commit
a9ac9434
authored
Oct 02, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: fix double free
parent
8ac5cc82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
modules/codec/avcodec/avcodec.c
modules/codec/avcodec/avcodec.c
+0
-1
modules/codec/avcodec/avcommon_compat.h
modules/codec/avcodec/avcommon_compat.h
+6
-1
No files found.
modules/codec/avcodec/avcodec.c
View file @
a9ac9434
...
...
@@ -341,7 +341,6 @@ static void CloseDecoder( vlc_object_t *p_this )
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
av_free
(
p_sys
->
p_context
->
extradata
);
avcodec_free_context
(
&
p_sys
->
p_context
);
free
(
p_sys
);
}
...
...
modules/codec/avcodec/avcommon_compat.h
View file @
a9ac9434
...
...
@@ -42,7 +42,12 @@
static
inline
void
avcodec_free_context
(
AVCodecContext
**
ctx
)
{
av_freep
(
ctx
);
if
(
!*
ctx
)
return
;
av_free
(
(
*
ctx
)
->
extradata
);
av_free
(
*
ctx
);
*
ctx
=
NULL
;
}
#endif
...
...
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