1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

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: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Sasi Inguva <isasi-at-google.com@ffmpeg.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d073be2291)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Dale Curtis 2017-11-17 14:53:25 -08:00 committed by Michael Niedermayer
parent a0eccf673c
commit 362967fec6

View File

@ -3296,6 +3296,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st)
// Free the old index and the old CTTS structures // Free the old index and the old CTTS structures
av_free(e_old); av_free(e_old);
av_free(ctts_data_old); av_free(ctts_data_old);
av_freep(&frame_duration_buffer);
// Null terminate the index ranges array // Null terminate the index ranges array
current_index_range++; current_index_range++;