libgfapi: Fixed few memory leaks in glfs_h_getxattr, glfs_h_setxattr calls.
Also replaced the tabs with spaces in that entire file. Change-Id: Iee6dc031d27fe8d26caf90736d4b2ac7bc8c5206 BUG: 1089414 Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/7841 Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Meghana M <mmadhusu@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
parent
8c7644cd73
commit
0d26de1b0a
@ -262,6 +262,8 @@ glfs_h_getxattrs (struct glfs *fs, struct glfs_object *object, const char *name,
|
||||
ret = glfs_getxattr_process (value, size, xattr, name);
|
||||
|
||||
out:
|
||||
loc_wipe (&loc);
|
||||
|
||||
if (inode)
|
||||
inode_unref (inode);
|
||||
|
||||
@ -378,6 +380,9 @@ out:
|
||||
if (inode)
|
||||
inode_unref (inode);
|
||||
|
||||
if (xattr)
|
||||
dict_unref (xattr);
|
||||
|
||||
glfs_subvol_done (fs, subvol);
|
||||
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user