Author: brueffer
Date: Sun Apr 13 20:12:21 2014
New Revision: 264419
URL: http://svnweb.freebsd.org/changeset/base/264419
Log:
Avoid double close() of a file descriptor.
CID: 1006089
Found with: Coverity Prevent(tm)
MFC after: 1 week
Modified:
head/usr.bin/ldd/sods.c
Modified: head/usr.bin/ldd/sods.c
==============================================================================
--- head/usr.bin/ldd/sods.c Sun Apr 13 19:48:51 2014 (r264418)
+++ head/usr.bin/ldd/sods.c Sun Apr 13 20:12:21 2014 (r264419)
@@ -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-all
To unsubscribe, send any mail to "[email protected]"