[FFmpeg-cvslog] avformat/avio: free url/avio options

Michael Niedermayer git at videolan.org
Fri Jan 29 20:23:40 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Jan 28 23:49:06 2016 +0100| [8fac0d640341f1b26fed8c9af4c31cb9485d5fd5] | committer: Michael Niedermayer

avformat/avio: free url/avio options

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8fac0d640341f1b26fed8c9af4c31cb9485d5fd5
---

 libavformat/avio.c    |    1 +
 libavformat/aviobuf.c |    1 +
 2 files changed, 2 insertions(+)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 05d0557..96b18fd 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -412,6 +412,7 @@ int ffurl_closep(URLContext **hh)
             av_opt_free(h->priv_data);
         av_freep(&h->priv_data);
     }
+    av_opt_free(h);
     av_freep(hh);
     return ret;
 }
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index b56d113..9851981 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -956,6 +956,7 @@ int avio_close(AVIOContext *s)
         av_log(s, AV_LOG_DEBUG, "Statistics: %d seeks, %d writeouts\n", s->seek_count, s->writeout_count);
     else
         av_log(s, AV_LOG_DEBUG, "Statistics: %"PRId64" bytes read, %d seeks\n", s->bytes_read, s->seek_count);
+    av_opt_free(s);
     av_free(s);
     return ffurl_close(h);
 }



More information about the ffmpeg-cvslog mailing list