mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/mov: fix memory leak
Fixes: CID 1338328. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
a01ba7f579
commit
f0197e1637
|
@ -430,6 +430,7 @@ retry:
|
||||||
if (snprintf(str, str_size_alloc, "%f", val) >= str_size_alloc) {
|
if (snprintf(str, str_size_alloc, "%f", val) >= str_size_alloc) {
|
||||||
av_log(c->fc, AV_LOG_ERROR,
|
av_log(c->fc, AV_LOG_ERROR,
|
||||||
"Failed to store the float32 number (%f) in string.\n", val);
|
"Failed to store the float32 number (%f) in string.\n", val);
|
||||||
|
av_free(str);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue