From 3eff98c9278804b4b664bad3853e5e60184c6a54 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 26 Mar 2018 00:52:39 -0300 Subject: [PATCH] avformat/rtpenc_chain: use the proper function to free AVFormatContext Fixes ticket #7075 Signed-off-by: James Almer --- libavformat/rtpenc_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtpenc_chain.c b/libavformat/rtpenc_chain.c index f768fb002e..e69fdc27cf 100644 --- a/libavformat/rtpenc_chain.c +++ b/libavformat/rtpenc_chain.c @@ -101,7 +101,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s, return 0; fail: - av_free(rtpctx); + avformat_free_context(rtpctx); if (handle) ffurl_close(handle); return ret;