diff options
Diffstat (limited to 'api/src/glfs-handleops.c')
| -rw-r--r-- | api/src/glfs-handleops.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c index a464b2ed195..b5fcfab713c 100644 --- a/api/src/glfs-handleops.c +++ b/api/src/glfs-handleops.c @@ -2297,13 +2297,15 @@ pub_glfs_h_acl_get (struct glfs *fs, struct glfs_object *object,                  goto out;          ret = dict_get_str (xattr, (char *)acl_key, &acl_s); -        if (ret == -1) +        if (ret)                  goto out;          acl = acl_from_text (acl_s);  out: -        GF_FREE (acl_s); +        if (xattr) +                dict_unref (xattr); +          if (IA_ISLNK (object->inode->ia_type) && new_object)                  glfs_h_close (new_object);  | 
