summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index f68436d0..1c73d67c 100644
--- a/utils.c
+++ b/utils.c
@@ -1217,6 +1217,7 @@ static int set_label_mounted(const char *mount_path, const char *label)
return -1;
}
+ close(fd);
return 0;
}
@@ -1274,6 +1275,7 @@ static int get_label_mounted(const char *mount_path)
}
fprintf(stdout, "%s\n", label);
+ close(fd);
return 0;
}