Message ID | 1362436804-16766-2-git-send-email-sandeen@redhat.com (mailing list archive) |
---|---|
State | Under Review, archived |
Headers | show |
diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 461eed9..a13a58d 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -464,6 +464,8 @@ static int cmd_subvol_list(int argc, char **argv) !is_list_all && !is_only_in_path, NULL); out: + if (fd != -1) + close(fd); if (filter_set) btrfs_list_free_filter_set(filter_set); if (comparer_set)
stops an fd leak that Coverity found. Signed-off-by: Eric Sandeen <sandeen@redhat.com> --- cmds-subvolume.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)