Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-09 15:39:06 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-01-09 15:39:06 +0300
commit2959a612326c5e473518eb91c4b66020468a11fe (patch)
treee5b279f8f7a377bf74e33dbc8aba1b0386191a4e /libavformat/utils.c
parentb88e80589bd11ef935a5e9dab53d4edb00de16e4 (diff)
avformat/utils: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 75819570e9..cb8b42b9c9 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -496,7 +496,7 @@ fail:
ff_id3v2_free_extra_meta(&id3v2_extra_meta);
av_dict_free(&tmp);
if (s->pb && !(s->flags & AVFMT_FLAG_CUSTOM_IO))
- avio_close(s->pb);
+ avio_closep(&s->pb);
avformat_free_context(s);
*ps = NULL;
return ret;