From: Keith Busch Date: Mon, 20 Nov 2017 20:18:51 +0000 (-0700) Subject: nvme/flush: explicitely close file descriptor X-Git-Tag: v1.5~29 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e2972c279b200cd43cba3fdec696798c7d35661a;p=users%2Fsagi%2Fnvme-cli.git nvme/flush: explicitely close file descriptor Was alread closed implicitly immediately after this function returns, but there's no reason to leave it open either. Reported-by: Thomas Tai Signed-off-by: Keith Busch --- diff --git a/nvme.c b/nvme.c index cedf96c1..5c298dd7 100644 --- a/nvme.c +++ b/nvme.c @@ -2375,6 +2375,7 @@ static int flush(int argc, char **argv, struct command *cmd, struct plugin *plug nvme_status_to_string(err), err); else printf("NVMe Flush: success\n"); + close(fd); return err; }