Closed yannh closed 5 years ago
In relation to: https://github.com/coreos/go-iptables/issues/61 if the lock file is successfully opened, but there was an error acquiring a lock, runWithOutput exits without closing the file. This patch tries to close the file before returning.
Good catch, thanks! Are there any other places we can leak this fd?
Hi @squeed , thanks! I think so, see https://github.com/coreos/go-iptables/issues/64 !
In relation to: https://github.com/coreos/go-iptables/issues/61 if the lock file is successfully opened, but there was an error acquiring a lock, runWithOutput exits without closing the file. This patch tries to close the file before returning.