mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
avio: make avio_close NULL the freed buffer
This commit is contained in:
@@ -762,7 +762,7 @@ int avio_close(AVIOContext *s)
|
||||
return 0;
|
||||
|
||||
h = s->opaque;
|
||||
av_free(s->buffer);
|
||||
av_freep(&s->buffer);
|
||||
av_free(s);
|
||||
return ffurl_close(h);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user