mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00: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