summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-18 06:55:32 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-18 06:55:32 +0000
commit23c562837b2b6a5cba8e48a04feaf9de7a4b39b4 (patch)
tree03d203bc56b37f4f96899d9cab97688cc13ebfe5 /usr.sbin/dhcp
parent486f23010c3e43a27b8da702a71ac5af55bd6187 (diff)
fix file descriptor leak.
http://marc.theaimsgroup.com/?l=openbsd-tech&m=102125850815351&w=2 From: Gregory Steuck <greg@nest.cx>
Diffstat (limited to 'usr.sbin/dhcp')
-rw-r--r--usr.sbin/dhcp/server/confpars.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/dhcp/server/confpars.c b/usr.sbin/dhcp/server/confpars.c
index 93fdf19d54d..1c91b9ae88e 100644
--- a/usr.sbin/dhcp/server/confpars.c
+++ b/usr.sbin/dhcp/server/confpars.c
@@ -84,6 +84,7 @@ int readconf ()
declaration);
} while (1);
token = next_token (&val, cfile); /* Clear the peek buffer */
+ fclose(cfile);
return !warnings_occurred;
}
@@ -134,6 +135,7 @@ void read_leases ()
}
} while (1);
+ fclose(cfile);
}
/* statement :== parameter | declaration