diff options
author | Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> | 2014-05-10 18:16:19 -0400 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com> | 2014-05-10 18:16:19 -0400 |
commit | e0877aa544b029c2ba0769233781733ba184fa02 (patch) | |
tree | d5afe8ce544dfdb212d89fe32f9928e6b30dbb84 /ffserver.c | |
parent | 97bcb05889169752625af4228e15494801dd7b96 (diff) | |
download | ffmpeg-e0877aa544b029c2ba0769233781733ba184fa02.tar.gz |
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>
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c index 9104984776..a6ab458de6 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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; |