Remove an incorrect close(2) call that was added in r271413.
Reported by: Coverity CID: 1238923 X-MFC-With: r271413
This commit is contained in:
parent
f0de463732
commit
527e468fc9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272003
@ -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)));
|
"failed to write %s: %s", file, strerror(errno)));
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
(void)close(fd);
|
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
return (dt_link_error(dtp, NULL, -1, NULL,
|
return (dt_link_error(dtp, NULL, -1, NULL,
|
||||||
"failed to write %s: %s", tfile,
|
"failed to write %s: %s", tfile,
|
||||||
|
Loading…
Reference in New Issue
Block a user