aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki2@gmail.com>2014-11-20 18:59:58 +0100
committerLukasz Marek <lukasz.m.luki2@gmail.com>2014-11-26 23:32:33 +0100
commit3d0867917faa9b4cb8e9dd49e5773c60eb2b8fe6 (patch)
treeb989e7d12386888d326c98615f64a0fbfa2cbce1 /ffserver.c
parent3cb0bec6870cf0bb7879f7bfd4119ef39a02a464 (diff)
downloadffmpeg-3d0867917faa9b4cb8e9dd49e5773c60eb2b8fe6.tar.gz
ffserver: dont leak pb_buffer
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c1
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;