summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-bridge.c
diff options
context:
space:
mode:
authorKremmyda, Olia (NSN - GR/Athens) <olympia.kremmyda@nokia.com>2016-05-22 21:40:19 +0300
committerJeff Darcy <jdarcy@redhat.com>2016-05-23 06:33:55 -0700
commitb01fb8d3bb9772d94073aaa52b2d8210ac4fabb8 (patch)
tree508a3ac26afa8d228de0d9b7e29fd545267bc1eb /xlators/mount/fuse/src/fuse-bridge.c
parent6c936a0da3f5f56dd711169f7eb8d335bbb8cdc7 (diff)
fuse: unref dict even if fuse_first_lookup fails
In fuse_first_lookup function, "dict_unref (dict)" should be included in the out label, in case create_frame returns an empty pointer the dict to be unreferenced as well. Bug: 1338544 Change-Id: Ifb8a3378aec6521c1aa848f818968b6bfdb72089 Signed-off-by: Olia Kremmyda <olympia.kremmyda@nokia.com> Reviewed-on: http://review.gluster.org/14464 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/mount/fuse/src/fuse-bridge.c')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index c8e7c35ce17..eead33fbd55 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -4272,8 +4272,6 @@ fuse_first_lookup (xlator_t *this)
pthread_mutex_unlock (&stub.mutex);
}
- dict_unref (dict);
-
pthread_mutex_destroy (&stub.mutex);
pthread_cond_destroy (&stub.cond);
@@ -4281,6 +4279,7 @@ fuse_first_lookup (xlator_t *this)
STACK_DESTROY (frame->root);
out:
+ dict_unref (dict);
inode_unref(loc.inode);
return ret;