avformat/movenc: Fix potential leak of sgpd_entries array.
Signed-off-by: Matthew Gregan <kinetik@flim.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c1616b454d
commit
b905ba5bc1
@ -2286,8 +2286,10 @@ static int mov_preroll_write_stbl_atoms(AVIOContext *pb, MOVTrack *track)
|
|||||||
}
|
}
|
||||||
entries++;
|
entries++;
|
||||||
|
|
||||||
if (!group)
|
if (!group) {
|
||||||
|
av_free(sgpd_entries);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Write sgpd tag */
|
/* Write sgpd tag */
|
||||||
avio_wb32(pb, 24 + (group * 2)); /* size */
|
avio_wb32(pb, 24 + (group * 2)); /* size */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user