[FFmpeg-devel] [PATCH] avformat/mov: fix memory leak

Ganesh Ajjanagadde gajjanagadde at gmail.com
Mon Nov 16 13:44:00 CET 2015


On Mon, Nov 16, 2015 at 5:27 AM, Paul B Mahol <onemda at gmail.com> wrote:
> On 11/16/15, Ganesh Ajjanagadde <gajjanagadde at gmail.com> wrote:
>> Fixes: CID 1338328.
>>
>> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
>> ---
>>  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 {
>> --
>> 2.6.2
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>
> lgtm

pushed, thanks.


More information about the ffmpeg-devel mailing list