From 0a25abdacd8a4dd4836cf1584ccab47204813ed2 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 12 Dec 2021 15:32:14 +0100 Subject: avformat/moflex: Free AVPackets via av_packet_free() on error (This is not a leak as long as av_free() completely frees blank packets.) Signed-off-by: Andreas Rheinhardt --- libavformat/moflex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat') diff --git a/libavformat/moflex.c b/libavformat/moflex.c index 234b0fb06e..67adebe5e0 100644 --- a/libavformat/moflex.c +++ b/libavformat/moflex.c @@ -383,4 +383,5 @@ const AVInputFormat ff_moflex_demuxer = { .read_close = moflex_read_close, .extensions = "moflex", .flags = AVFMT_GENERIC_INDEX, + .flags_internal = FF_FMT_INIT_CLEANUP, }; -- cgit v1.2.3