[FFmpeg-cvslog] avformat/mov: fix memory leak

Ganesh Ajjanagadde git at videolan.org
Mon Nov 16 13:43:39 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Sun Nov 15 20:12:20 2015 -0500| [f0197e1637bbe9d508f54dabb58a9081e8f36ef3] | committer: Ganesh Ajjanagadde

avformat/mov: fix memory leak

Fixes: CID 1338328.

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

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

 libavformat/mov.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 38d3659..7ab2808 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -430,6 +430,7 @@ retry:
             if (snprintf(str, str_size_alloc, "%f", val) >= str_size_alloc) {
                 av_log(c->fc, AV_LOG_ERROR,
                        "Failed to store the float32 number (%f) in string.\n", val);
+                av_free(str);
                 return AVERROR_INVALIDDATA;
             }
         } else {



More information about the ffmpeg-cvslog mailing list