summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-03 17:30:55 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-03 17:30:55 +0000
commit0a08045f92c944a0454eeba1f9ae05097297c3db (patch)
treef7c9d873bbe36635e56f83f0644c07c4e1817cbd /util
parent7c0eb780a9ef4ce0b17aca181ca7b8e531c0862d (diff)
util/nvmutil: close rfd on exit
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index a468fd6a..76229a94 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -122,6 +122,7 @@ main(int argc, char *argv[])
write_gbe();
err_if(close(fd) == -1);
+ err_if(close(rfd) == -1);
err_if((errno != 0) && (cmd != cmd_dump));
return errno ? EXIT_FAILURE : EXIT_SUCCESS;