mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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) {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user