[FFmpeg-cvslog] avio: make avio_close NULL the freed buffer
Luca Barbato
git at videolan.org
Tue Sep 4 17:15:03 CEST 2012
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Sep 4 15:04:46 2012 +0200| [30939390775029fa70b8491d570ac6013cd03c71] | committer: Luca Barbato
avio: make avio_close NULL the freed buffer
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=30939390775029fa70b8491d570ac6013cd03c71
---
libavformat/aviobuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 0353a17..fb01613 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);
}
More information about the ffmpeg-cvslog
mailing list