diff options
author | Clément Bœsch <clement.boesch@smartjog.com> | 2012-11-13 19:32:35 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-11-15 14:52:44 +0400 |
commit | 0e482a8e49f34bd479b8436da9aee75455c9bcb7 (patch) | |
tree | 8434f4cdda4606df8f45abfa3a23b470560b7818 | |
parent | a9b1536a018b867e3458a278c2992f7cd2fb707d (diff) |
ffserver: fix streams and priv_data memleaks when closing a connection.
-rw-r--r-- | ffserver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index 18271ce202..1f2723743d 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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; |