summaryrefslogtreecommitdiff
path: root/libavformat/segment.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r--libavformat/segment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 0e8bcddb00..b0ef6dd38e 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -569,7 +569,7 @@ static int open_null_ctx(AVIOContext **ctx)
static void close_null_ctxp(AVIOContext **pb)
{
av_freep(&(*pb)->buffer);
- av_freep(pb);
+ avio_context_free(pb);
}
static int select_reference_stream(AVFormatContext *s)