Commit 30939390 authored by Luca Barbato's avatar Luca Barbato
Browse files

avio: make avio_close NULL the freed buffer

parent a6842670
...@@ -762,7 +762,7 @@ int avio_close(AVIOContext *s) ...@@ -762,7 +762,7 @@ int avio_close(AVIOContext *s)
return 0; return 0;
h = s->opaque; h = s->opaque;
av_free(s->buffer); av_freep(&s->buffer);
av_free(s); av_free(s);
return ffurl_close(h); return ffurl_close(h);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment