Blame SOURCES/restorecond-fedora.patch

10f7fd
diff --git restorecond-2.8/restorecond.c restorecond-2.8/restorecond.c
10f7fd
index 6fbbd35..e1d26cb 100644
10f7fd
--- restorecond-2.8/restorecond.c
10f7fd
+++ restorecond-2.8/restorecond.c
10f7fd
@@ -105,6 +105,7 @@ static int write_pid_file(void)
10f7fd
 	}
10f7fd
 	if (write(pidfd, val, (unsigned int)len) != len) {
10f7fd
 		syslog(LOG_ERR, "Unable to write to pidfile (%s)", strerror(errno));
10f7fd
+		close(pidfd);
10f7fd
 		return 1;
10f7fd
 	}
10f7fd
 	close(pidfd);