You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-14 22:15:12 +02:00
ffserver: dont leak pb_buffer
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user