commit | 2b0fbebd5011aeb8856f2e76c7041cf430676566 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Sat May 26 23:53:30 2018 +0200 |
committer | Nicolas Iooss <nicolas.iooss@m4x.org> | Wed Jul 04 22:08:27 2018 +0200 |
tree | 4f7fa70ce7ab2cd3bb55d3e34c5a66df86dfb08f | |
parent | f032946cf9165eaca412d33fb2032a1e0dbb9a20 [diff] |
restorecond: close the PID file if writing to it failed write_pid_file() leaks a file descriptor to /var/run/restorecond.pid if it fails to write the PID to it. Close the file before returning. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>