From eb3e661babfdd9583db1a6706ca526a33b49a467 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 8 Jan 2015 14:11:12 +0100 Subject: [PATCH] ffserver: Use avio_closep() to avoid leaving stale pointers in memor Signed-off-by: Michael Niedermayer --- ffserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffserver.c b/ffserver.c index c4cf390de5..1f20d199a2 100644 --- a/ffserver.c +++ b/ffserver.c @@ -3630,7 +3630,7 @@ static void build_feed_streams(void) } /* XXX: need better API */ av_freep(&s->priv_data); - avio_close(s->pb); + avio_closep(&s->pb); s->streams = NULL; s->nb_streams = 0; avformat_free_context(s);