mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avformat/mov: free AVBPrint on error when parsing infe boxes
Should fix memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
+5
-3
@@ -8928,11 +8928,13 @@ static int mov_read_infe(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
if (!item)
|
||||
if (!item) {
|
||||
av_bprint_finalize(&item_name, NULL);
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
if (ret)
|
||||
av_bprint_finalize(&item_name, &item->name);
|
||||
av_assert1(ret);
|
||||
av_bprint_finalize(&item_name, &item->name);
|
||||
item->item_id = item_id;
|
||||
item->type = item_type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user