1
0
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:
Luca Barbato 2012-09-04 15:04:46 +02:00
parent a684267076
commit 3093939077

View File

@ -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);
}