git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e0d6e2f
)
vsrc_movie: do not free avoption variables in uninit()
author
Anton Khirnov
<anton@khirnov.net>
Thu, 20 Jun 2013 11:27:14 +0000
(13:27 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Thu, 20 Jun 2013 11:27:14 +0000
(13:27 +0200)
The generic code frees them as well. Since av_free was used to free them
instead of av_freep, this would result in a double free.
libavfilter/vsrc_movie.c
patch
|
blob
|
history
diff --git
a/libavfilter/vsrc_movie.c
b/libavfilter/vsrc_movie.c
index
9cde9d4
..
a11a164
100644
(file)
--- a/
libavfilter/vsrc_movie.c
+++ b/
libavfilter/vsrc_movie.c
@@
-173,8
+173,6
@@
static av_cold void uninit(AVFilterContext *ctx)
{
MovieContext *movie = ctx->priv;
- av_free(movie->file_name);
- av_free(movie->format_name);
if (movie->codec_ctx)
avcodec_close(movie->codec_ctx);
if (movie->format_ctx)