diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-20 18:59:58 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-26 23:32:33 +0100 |
commit | 3d0867917faa9b4cb8e9dd49e5773c60eb2b8fe6 (patch) | |
tree | b989e7d12386888d326c98615f64a0fbfa2cbce1 | |
parent | 3cb0bec6870cf0bb7879f7bfd4119ef39a02a464 (diff) | |
download | ffmpeg-3d0867917faa9b4cb8e9dd49e5773c60eb2b8fe6.tar.gz |
ffserver: dont leak pb_buffer
-rw-r--r-- | ffserver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index 012056dd48..8ef51a1f9c 100644 --- a/ffserver.c +++ b/ffserver.c @@ -2254,6 +2254,7 @@ static int http_prepare_data(HTTPContext *c) c->state = HTTPSTATE_SEND_DATA_TRAILER; } + av_freep(&c->pb_buffer); len = avio_close_dyn_buf(ctx->pb, &c->pb_buffer); c->cur_frame_bytes = len; c->buffer_ptr = c->pb_buffer; |