From 77b26bf4b63b186cf1ea040d1a0ffa593b6ae700 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 2 Mar 2024 16:40:18 +0100 Subject: [PATCH] avformat/dvdvideodec: Only free allocated buffers Reviewed-by: Marth64 Signed-off-by: Andreas Rheinhardt --- libavformat/dvdvideodec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c index ef2d4e6df4..f2f23affb2 100644 --- a/libavformat/dvdvideodec.c +++ b/libavformat/dvdvideodec.c @@ -1202,7 +1202,6 @@ static void dvdvideo_subdemux_close(AVFormatContext *s) DVDVideoDemuxContext *c = s->priv_data; av_freep(&c->mpeg_pb.pub.buffer); - av_freep(&c->mpeg_pb); avformat_close_input(&c->mpeg_ctx); }