summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2017-01-04 16:29:49 +0530
committerJeff Darcy <jdarcy@redhat.com>2017-01-06 10:04:39 -0800
commit1278f1957cbb44263c510f351875c968319ea3db (patch)
treee36239d0a3b018d98a9a3e1485487bbb8d3e2808
parent9061ccf0a906925f54f853f92ad609d8269232a2 (diff)
features/uss: Remove redundant dict_unref
In case dict_set_dynstr_with_alloc fails, dict_unref is done when exection jumps to label 'out'. Change-Id: I083386b7f85207348ba0bc353b5d1036ab821a15 Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-on: http://review.gluster.org/16321 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
-rw-r--r--xlators/features/snapview-client/src/snapview-client.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/xlators/features/snapview-client/src/snapview-client.c b/xlators/features/snapview-client/src/snapview-client.c
index 6eb7cc071c2..3ddb284bfbb 100644
--- a/xlators/features/snapview-client/src/snapview-client.c
+++ b/xlators/features/snapview-client/src/snapview-client.c
@@ -850,7 +850,6 @@ gf_svc_getxattr (call_frame_t *frame, xlator_t *this, loc_t *loc,
if (ret) {
op_errno = ENOMEM;
- dict_unref (dict);
goto out;
}