btrfs-progs: close fd on return from label get/set functions

Somehow missed these 2 in the last round.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
master
Eric Sandeen 2013-03-11 18:12:58 -05:00 committed by David Sterba
parent 016f6f4354
commit 5bc34c6602
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}