close config file after reading
authorJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Tue, 31 Jan 1995 21:12:24 +0000 (13:12 -0800)
committerJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Tue, 31 Jan 1995 21:12:24 +0000 (13:12 -0800)
SCCS-vsn: usr.bin/man/config.c 8.8
SCCS-vsn: usr.bin/man/config.c 8.8

usr/src/usr.bin/man/config.c

index fad6517..8c2e317 100644 (file)
@@ -1,12 +1,12 @@
 /*
 /*
- * Copyright (c) 1989, 1993
+ * Copyright (c) 1989, 1993, 1995
  *     The Regents of the University of California.  All rights reserved.
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
  *     The Regents of the University of California.  All rights reserved.
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)config.c   8.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)config.c   8.8 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -96,6 +96,8 @@ config(fname)
                        TAILQ_INSERT_TAIL(&tp->list, ep, q);
                }
        }
                        TAILQ_INSERT_TAIL(&tp->list, ep, q);
                }
        }
+
+       fclose(cfp);
 }
 
 /*
 }
 
 /*