]> granicus.if.org Git - neomutt/commit
nntp: fix resource leak
authorRichard Russon <rich@flatcap.org>
Tue, 18 Oct 2016 15:40:18 +0000 (16:40 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 18 Oct 2016 16:02:42 +0000 (17:02 +0100)
commitc5c0371307a86340ec88f80dae145c7e4ed78315
tree202a8e25cc8fc0e0a267340414c4bd0096683a36
parenta9293e40cfb65b37b33f7f1ca863a8c3b4d87e46
nntp: fix resource leak

Every $nntp_poll seconds, NNTP checks the file $newsrc
Unfortunately, it didn't release the file handle afterwards.

After a day's use, this would leak 1440 file handles leading most users
to the error "Too many open files".

Fixes: #204
newsrc.c