diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-19 03:33:05 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-19 03:33:05 +0200 |
commit | 6f4267eb44ddddd928ee34d455a092a4863a1ea9 (patch) | |
tree | 8a1c2ab2da3bf67d5b1dcab955533adcc404dea2 /lib | |
parent | 50385e06ec207af0171c021f1909e9ef38c00519 (diff) |
Fix memory leak in dir-scan error code path
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fstree/fstree_from_dir.c | 2 |
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 |