(ef_open): Leaked file descriptor when fcntl() failed.

This commit is contained in:
Markus Armbruster 2007-07-31 05:03:25 +00:00
parent 0890911655
commit e1926d9ce9

View file

@ -106,6 +106,7 @@ ef_open(int type, int how)
lock.l_start = lock.l_len = 0;
if (fcntl(fd, F_SETLK, &lock) == -1) {
logerror("Can't lock %s (%s)", ep->file, strerror(errno));
close(fd);
return 0;
}
#endif