From d1d8f866b5400e1cb8ebbd06fde124642e894f31 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 8 Jan 2015 20:11:00 +0100 Subject: [PATCH] avformat/mlvdec: Use avio_closep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavformat/mlvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c index 93d54e01e8..d0c51ae114 100644 --- a/libavformat/mlvdec.c +++ b/libavformat/mlvdec.c @@ -445,7 +445,7 @@ static int read_close(AVFormatContext *s) int i; for (i = 0; i < 100; i++) if (mlv->pb[i]) - avio_close(mlv->pb[i]); + avio_closep(&mlv->pb[i]); return 0; }