Date: Sun, 13 Apr 2014 20:12:21 +0000 (UTC) From: Christian Brueffer <brueffer@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264419 - head/usr.bin/ldd Message-ID: <201404132012.s3DKCLmf019509@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404132012.s3DKCLmf019509>