Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2014 21:09:30 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272003 - head/cddl/contrib/opensolaris/lib/libdtrace/common
Message-ID:  <201409222109.s8ML9U1U021424@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Sep 22 21:09:30 2014
New Revision: 272003
URL: http://svnweb.freebsd.org/changeset/base/272003

Log:
  Remove an incorrect close(2) call that was added in r271413.
  
  Reported by:	Coverity
  CID:		1238923
  X-MFC-With:	r271413

Modified:
  head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c

Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c	Mon Sep 22 21:02:38 2014	(r272002)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c	Mon Sep 22 21:09:30 2014	(r272003)
@@ -1819,7 +1819,6 @@ dtrace_program_link(dtrace_hdl_t *dtp, d
 		    "failed to write %s: %s", file, strerror(errno)));
 	}
 #else
-	(void)close(fd);
 	if (status != 0)
 		return (dt_link_error(dtp, NULL, -1, NULL,
 		    "failed to write %s: %s", tfile,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409222109.s8ML9U1U021424>