Skip to content
Snippets Groups Projects
Commit 0e482a8e authored by Clément Bœsch's avatar Clément Bœsch Committed by Clément Bœsch
Browse files

ffserver: fix streams and priv_data memleaks when closing a connection.

parent a9b1536a
No related branches found
No related tags found
No related merge requests found
...@@ -929,6 +929,8 @@ static void close_connection(HTTPContext *c) ...@@ -929,6 +929,8 @@ static void close_connection(HTTPContext *c)
for(i=0; i<ctx->nb_streams; i++) for(i=0; i<ctx->nb_streams; i++)
av_free(ctx->streams[i]); av_free(ctx->streams[i]);
av_freep(&ctx->streams);
av_freep(&ctx->priv_data);
if (c->stream && !c->post && c->stream->stream_type == STREAM_TYPE_LIVE) if (c->stream && !c->post && c->stream->stream_type == STREAM_TYPE_LIVE)
current_bandwidth -= c->stream->bandwidth; current_bandwidth -= c->stream->bandwidth;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment