svn commit: r298874 - head/sbin/restore

Pedro F. Giffuni pfg at FreeBSD.org
Sun May 1 02:39:41 UTC 2016


Author: pfg
Date: Sun May  1 02:39:39 2016
New Revision: 298874
URL: https://svnweb.freebsd.org/changeset/base/298874

Log:
  restore: fix resource handle leak.
  
  CID:		1007784
  MFC after:	5 days

Modified:
  head/sbin/restore/symtab.c

Modified: head/sbin/restore/symtab.c
==============================================================================
--- head/sbin/restore/symtab.c	Sun May  1 02:31:22 2016	(r298873)
+++ head/sbin/restore/symtab.c	Sun May  1 02:39:39 2016	(r298874)
@@ -559,6 +559,7 @@ initsymtable(char *filename)
 		fprintf(stderr, "read: %s\n", strerror(errno));
 		panic("cannot read symbol table file %s\n", filename);
 	}
+	(void)close(fd);
 	switch (command) {
 	case 'r':
 		/*


More information about the svn-src-all mailing list