aboutsummaryrefslogtreecommitdiff
path: root/lib/fstree
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-19 03:33:05 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-19 03:33:05 +0200
commit6f4267eb44ddddd928ee34d455a092a4863a1ea9 (patch)
tree8a1c2ab2da3bf67d5b1dcab955533adcc404dea2 /lib/fstree
parent50385e06ec207af0171c021f1909e9ef38c00519 (diff)
Fix memory leak in dir-scan error code path
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree')
-rw-r--r--lib/fstree/fstree_from_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fstree/fstree_from_dir.c b/lib/fstree/fstree_from_dir.c
index 4b89272..ae8cac9 100644
--- a/lib/fstree/fstree_from_dir.c
+++ b/lib/fstree/fstree_from_dir.c
@@ -190,7 +190,7 @@ static int populate_dir(fstree_t *fs, tree_node_t *root, dev_t devstart,
#ifdef HAVE_SYS_XATTR_H
if (flags & DIR_SCAN_READ_XATTR) {
if (populate_xattr(fs, n))
- return -1;
+ goto fail;
}
#endif