aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-03-26 10:43:45 -0300
committerJames Almer <jamrial@gmail.com>2024-03-26 10:43:45 -0300
commit1e7ba76562949d526613a07257ee4c015cf71a14 (patch)
treed5360bfa73dfedcadbc53db60d1614bb73138478
parent61afe4d98ce62d9dfc6f0548e18730ba2f621cc2 (diff)
downloadffmpeg-1e7ba76562949d526613a07257ee4c015cf71a14.tar.gz
avformat/mov: free HEIFItem.name when cleaning items in mov_read_trak
Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/mov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 4e265cf662..a4d95a4b23 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4866,6 +4866,8 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom)
for (int i = c->nb_heif_item - 1; i >= 0; i--) {
HEIFItem *item = &c->heif_item[i];
+ av_freep(&item->name);
+
if (!item->st)
continue;