[FFmpeg-cvslog] libmodplug: free file content buffer in read_close() callback.

Clément Bœsch git at videolan.org
Thu Oct 6 08:51:00 CEST 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Oct  6 08:50:56 2011 +0200| [1b3b4a575bc770bef13a560db6a9d4fdbab7241c] | committer: Clément Bœsch

libmodplug: free file content buffer in read_close() callback.

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

 libavformat/libmodplug.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c
index d0e1979..edae4b3 100644
--- a/libavformat/libmodplug.c
+++ b/libavformat/libmodplug.c
@@ -204,6 +204,7 @@ static int modplug_read_close(AVFormatContext *s)
 {
     ModPlugContext *modplug = s->priv_data;
     ModPlug_Unload(modplug->f);
+    av_freep(&modplug->buf);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list