diff options
author | Andy Nguyen <theflow@google.com> | 2025-08-13 01:51:10 +0200 |
---|---|---|
committer | michaelni <michael@niedermayer.cc> | 2025-08-13 09:46:36 +0000 |
commit | 870cfed2317e311a71bc14773332486a162f059c (patch) | |
tree | ee8b6e3ed2afd9ca543fdf4742e0387d3950732f | |
parent | b61e510e7500c27c7dee2b9c8cfa77689195f2a0 (diff) | |
download | ffmpeg-870cfed2317e311a71bc14773332486a162f059c.tar.gz |
avformat/aviobuf: Free white/black list in avio_context_free()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/aviobuf.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); } |