Commit b905ba5b authored by Matthew Gregan's avatar Matthew Gregan Committed by Michael Niedermayer

avformat/movenc: Fix potential leak of sgpd_entries array.

Signed-off-by: 's avatarMatthew Gregan <kinetik@flim.org>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c1616b45
......@@ -2286,8 +2286,10 @@ static int mov_preroll_write_stbl_atoms(AVIOContext *pb, MOVTrack *track)
}
entries++;
if (!group)
if (!group) {
av_free(sgpd_entries);
return 0;
}
/* Write sgpd tag */
avio_wb32(pb, 24 + (group * 2)); /* size */
......
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