[FFmpeg-devel] [PATCH 2/2] ffserver: fix streams memleak when closing a connection.
Clément Bœsch
ubitux at gmail.com
Tue Nov 13 16:35:18 CET 2012
From: Clément Bœsch <clement.boesch at smartjog.com>
---
ffserver.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffserver.c b/ffserver.c
index 0d2a8a7..28a614f 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -929,6 +929,7 @@ static void close_connection(HTTPContext *c)
for(i=0; i<ctx->nb_streams; i++)
av_free(ctx->streams[i]);
+ av_free(ctx->streams);
if (c->stream && !c->post && c->stream->stream_type == STREAM_TYPE_LIVE)
current_bandwidth -= c->stream->bandwidth;
--
1.7.10.4
More information about the ffmpeg-devel
mailing list