diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2018-08-15 02:27:53 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-08-17 02:49:13 +0000 |
commit | c0b5eab4c0bb95236c18ba5c7f596e44d7ec49e1 (patch) | |
tree | baf246e3501b68c0777375b7eda8e5de3ee28374 /xlators/experimental | |
parent | 0b450b8b35cf8f03d51eeb5b0941832cde636993 (diff) |
jbr : fix coverity issues in jbr
This patch fixes CID 1357875 and 1357869.
Change-Id: Ief88523e5ad92a2c884ff1b85cd613992bba0dad
updates: bz#789278
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'xlators/experimental')
-rw-r--r-- | xlators/experimental/jbr-server/src/jbr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/experimental/jbr-server/src/jbr.c b/xlators/experimental/jbr-server/src/jbr.c index d76cf78030e..08b357a5644 100644 --- a/xlators/experimental/jbr-server/src/jbr.c +++ b/xlators/experimental/jbr-server/src/jbr.c @@ -676,6 +676,8 @@ jbr_lk_perform_local_op (call_frame_t *frame, xlator_t *this, int *op_errno, UNLOCK(&ictx->lock); ret = jbr_perform_lk_on_leader (frame, this, fd, cmd, flock, xdata); + if (ret == -1) + goto out; } ret = 0; @@ -1129,6 +1131,10 @@ err: if (my_xdata) { dict_unref(my_xdata); } + + if (probe_str) + GF_FREE (probe_str); + STACK_UNWIND_STRICT (ipc, frame, -1, op_errno, NULL); } |