From 5bc34c66028fe8c9eea21a682b760713c2e0dc47 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Mon, 11 Mar 2013 18:12:58 -0500 Subject: [PATCH] btrfs-progs: close fd on return from label get/set functions Somehow missed these 2 in the last round. Signed-off-by: Eric Sandeen --- utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.c b/utils.c index f68436d..1c73d67 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; }