aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-15 20:12:20 -0500
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-16 07:41:33 -0500
commitf0197e1637bbe9d508f54dabb58a9081e8f36ef3 (patch)
tree3f2e3d87afd8767997c2fdcd2d681c6b9783e3f2 /libavformat/mov.c
parenta01ba7f579f47b2ba22ca11d3e9c067ebd789a4e (diff)
downloadffmpeg-f0197e1637bbe9d508f54dabb58a9081e8f36ef3.tar.gz
avformat/mov: fix memory leak
Fixes: CID 1338328. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 38d36590e6..7ab2808c85 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 {