avformat/aviobuf: Free white/black list in avio_context_free()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Andy Nguyen 2025-08-13 01:51:10 +02:00 committed by michaelni
parent b61e510e75
commit 870cfed231

View file

@ -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);
}