svn commit: r264786 - stable/9/usr.bin/ldd

Christian Brueffer brueffer at FreeBSD.org
Tue Apr 22 21:26:23 UTC 2014


Author: brueffer
Date: Tue Apr 22 21:26:23 2014
New Revision: 264786
URL: http://svnweb.freebsd.org/changeset/base/264786

Log:
  MFC: r264419
  
  Avoid double close() of a file descriptor.
  
  CID:		1006089
  Found with:	Coverity Prevent(tm)

Modified:
  stable/9/usr.bin/ldd/sods.c
Directory Properties:
  stable/9/usr.bin/ldd/   (props changed)

Modified: stable/9/usr.bin/ldd/sods.c
==============================================================================
--- stable/9/usr.bin/ldd/sods.c	Tue Apr 22 21:25:03 2014	(r264785)
+++ stable/9/usr.bin/ldd/sods.c	Tue Apr 22 21:26:23 2014	(r264786)
@@ -204,7 +204,6 @@ dump_file(const char *fname)
 	warnx("%s: this is an ELF program; use objdump to examine", fname);
 	++error_count;
 	munmap(objbase, sb.st_size);
-	close(fd);
 	return;
     }
 


More information about the svn-src-stable-9 mailing list