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

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to