mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +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