diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-09-04 15:04:46 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-09-04 15:04:46 +0200 |
commit | 30939390775029fa70b8491d570ac6013cd03c71 (patch) | |
tree | 6e0565fe3aec4e7d990b4cbdfec52541e21b75e1 /libavformat | |
parent | a684267076fc577aaebed9e35b566796d361a69c (diff) | |
download | ffmpeg-30939390775029fa70b8491d570ac6013cd03c71.tar.gz |
avio: make avio_close NULL the freed buffer
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/aviobuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 0353a17379..fb01613298 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -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); } |