summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
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);
}