Browse Source

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

tags/n1.1
Clément Bœsch Clément Bœsch 13 years ago
parent
commit
0e482a8e49
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ffserver.c

+ 2
- 0
ffserver.c View File

@@ -929,6 +929,8 @@ static void close_connection(HTTPContext *c)

for(i=0; i<ctx->nb_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)
current_bandwidth -= c->stream->bandwidth;


Loading…
Cancel
Save