summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2012-09-04 15:04:46 +0200
committerLuca Barbato <lu_zero@gentoo.org>2012-09-04 15:04:46 +0200
commit30939390775029fa70b8491d570ac6013cd03c71 (patch)
tree6e0565fe3aec4e7d990b4cbdfec52541e21b75e1 /libavformat/aviobuf.c
parenta684267076fc577aaebed9e35b566796d361a69c (diff)
avio: make avio_close NULL the freed buffer
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c2
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);
}