mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avio: make avio_close NULL the freed buffer
This commit is contained in:
parent
a684267076
commit
3093939077
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user