summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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