summaryrefslogtreecommitdiff
path: root/cmds-send.c
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2013-04-09 19:08:31 +0200
committerDavid Sterba <dsterba@suse.cz>2013-04-23 18:56:22 +0200
commit75c47053a44e77126faa67c93e2833887e4cf21e (patch)
treecf19beefca9570d0688ca89b2bf6e0ff4ef63057 /cmds-send.c
parent42989f492963e7c17a08d1844cd09d48db441a32 (diff)
downloadbtrfs-progs-75c47053a44e77126faa67c93e2833887e4cf21e.tar.gz
btrfs-progs-75c47053a44e77126faa67c93e2833887e4cf21e.tar.bz2
btrfs-progs-75c47053a44e77126faa67c93e2833887e4cf21e.zip
Btrfs-progs: close file descriptor in cmds-send.c
valgrind found this very obvious issue. Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Diffstat (limited to 'cmds-send.c')
-rw-r--r--cmds-send.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-send.c b/cmds-send.c
index 5a7183d0..3ba5af67 100644
--- a/cmds-send.c
+++ b/cmds-send.c
@@ -82,6 +82,7 @@ int find_mount_root(const char *path, char **mount_root)
}
}
}
+ fclose(mnttab);
*mount_root = realpath(longest_match, NULL);
free(longest_match);