Commit d073be22 authored by Dale Curtis's avatar Dale Curtis Committed by Michael Niedermayer

Fix leak of frame_duration_buffer in mov_fix_index().

Should be unconditionally freed at the end of mov_fix_index() in
case it hasn't been used during the fix up.
Signed-off-by: 's avatarDale Curtis <dalecurtis@chromium.org>
Reviewed-by: 's avatarSasi Inguva <isasi-at-google.com@ffmpeg.org>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 4f7f7073
......@@ -3553,6 +3553,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st)
// Free the old index and the old CTTS structures
av_free(e_old);
av_free(ctts_data_old);
av_freep(&frame_duration_buffer);
// Null terminate the index ranges array
current_index_range++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment