You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
matroska_parse_frame: fix memleak
Fixes CID991856 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2140,6 +2140,8 @@ static int matroska_parse_frame(MatroskaDemuxContext *matroska,
|
|||||||
AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL,
|
AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL,
|
||||||
additional_size + 8);
|
additional_size + 8);
|
||||||
if(side_data == NULL) {
|
if(side_data == NULL) {
|
||||||
|
av_free_packet(pkt);
|
||||||
|
av_free(pkt);
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
AV_WB64(side_data, additional_id);
|
AV_WB64(side_data, additional_id);
|
||||||
|
Reference in New Issue
Block a user