From: Honggang Li <honli@xxxxxxxxxx> Issue was found by Coverity. Signed-off-by: Honggang Li <honli@xxxxxxxxxx> --- opensm/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opensm/main.c b/opensm/main.c index ba20d985..2d23fe2b 100644 --- a/opensm/main.c +++ b/opensm/main.c @@ -565,6 +565,8 @@ static int daemonize(osm_opensm_t * osm) dup2(fd, 1); dup2(fd, 2); + close(fd); + return 0; } -- 2.14.4