[FFmpeg-devel] [PATCH] avformat/aviobuf: Free white/black list in avio_context_free() (PR #20230)
michaelni
code at ffmpeg.org
Wed Aug 13 03:20:34 EEST 2025
PR #20230 opened by michaelni
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20230
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20230.patch
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
From e422dc5ff033bc77a1960fdeccc45f22a30377f3 Mon Sep 17 00:00:00 2001
From: Andy Nguyen <theflow at google.com>
Date: Wed, 13 Aug 2025 01:51:10 +0200
Subject: [PATCH] avformat/aviobuf: Free white/black list in
avio_context_free()
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavformat/aviobuf.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 6a74c1ce68..34743556ae 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -125,6 +125,11 @@ AVIOContext *avio_alloc_context(
void avio_context_free(AVIOContext **ps)
{
+ if (ps && *ps) {
+ AVIOContext *s = *ps;
+ av_freep(&s->protocol_whitelist);
+ av_freep(&s->protocol_blacklist);
+ }
av_freep(ps);
}
--
2.49.1
More information about the ffmpeg-devel
mailing list