mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 13:30:45 +00:00
ffserver: don't leak poll_table if poll fails
Should fix Coverity Scan issue #732265 Signed-off-by: Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>
This commit is contained in:
parent
97bcb05889
commit
e0877aa544
@ -747,8 +747,10 @@ static int http_server(void)
|
||||
do {
|
||||
ret = poll(poll_table, poll_entry - poll_table, delay);
|
||||
if (ret < 0 && ff_neterrno() != AVERROR(EAGAIN) &&
|
||||
ff_neterrno() != AVERROR(EINTR))
|
||||
ff_neterrno() != AVERROR(EINTR)) {
|
||||
av_free(poll_table);
|
||||
return -1;
|
||||
}
|
||||
} while (ret < 0);
|
||||
|
||||
cur_time = av_gettime() / 1000;
|
||||
|
Loading…
Reference in New Issue
Block a user