diff options
author | markj <markj@FreeBSD.org> | 2014-09-22 21:09:30 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2014-09-22 21:09:30 +0000 |
commit | 06bee38d37ce7a0db0ac605a748fc025de393327 (patch) | |
tree | 562db5f4367f381c0329ac8340a02643475de53b /cddl/contrib/opensolaris/lib/libdtrace/common | |
parent | 855d72feb3103c28b70b54b056a4b1d97d888ec3 (diff) | |
download | FreeBSD-src-06bee38d37ce7a0db0ac605a748fc025de393327.zip FreeBSD-src-06bee38d37ce7a0db0ac605a748fc025de393327.tar.gz |
Remove an incorrect close(2) call that was added in r271413.
Reported by: Coverity
CID: 1238923
X-MFC-With: r271413
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace/common')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c index 106878c..597fef4 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c @@ -1819,7 +1819,6 @@ dtrace_program_link(dtrace_hdl_t *dtp, dtrace_prog_t *pgp, uint_t dflags, "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, |