haiwen/seafile — pull request #426 by vadz (2013-11-04 19:10:00+00:00)
Title: Fix FILE leak if an error happens while writing pidfile.

Call fclose() even if writing to the PID file failed, otherwise it was simply leaked in this case.