add fclose on pid file

This commit is contained in:
Arnaud Cornet 2009-01-06 16:34:17 +01:00
parent eb57d9683d
commit a57e76f883
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ pid_is_there:
if (c != 1 || p == 0) {
mylog(LOG_INFO, "pid file found but invalid "
"data inside. Continuing...\n");
fclose(f);
if (unlink(conf_pid_file)) {
fatal("Cannot delete pid file '%s', "
"check permissions.\n",