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;
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"