From 7ee3c9a42fc7584d90da6158ef7510551a915b2b Mon Sep 17 00:00:00 2001 From: Sunny Kumar Date: Tue, 17 Mar 2020 15:42:59 +0000 Subject: worm-xlator: fix newly introduced coverity issue This patch fixes CID: 1420405 updates: #1060 Change-Id: I0524e999fa1d36ed5a713eabf65482c04ad43a1a Signed-off-by: Sunny Kumar --- xlators/features/read-only/src/worm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xlators/features/read-only/src/worm.c b/xlators/features/read-only/src/worm.c index 056e429dd62..1cc5526d5cd 100644 --- a/xlators/features/read-only/src/worm.c +++ b/xlators/features/read-only/src/worm.c @@ -440,8 +440,6 @@ worm_create_cbk(call_frame_t *frame, void *cookie, xlator_t *this, { int ret = 0; read_only_priv_t *priv = NULL; - dict_t *dict = NULL; - // In case of an error exit because fd can be NULL and this would // cause an segfault when performing fsetxattr . We explicitly // unwind to avoid future problems @@ -468,8 +466,6 @@ worm_create_cbk(call_frame_t *frame, void *cookie, xlator_t *this, out: STACK_UNWIND_STRICT(create, frame, op_ret, op_errno, fd, inode, buf, preparent, postparent, xdata); - if (dict) - dict_unref(dict); return ret; } -- cgit