summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/cloudsync/src/cloudsync-plugins/src/cvlt/src/libcvlt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xlators/features/cloudsync/src/cloudsync-plugins/src/cvlt/src/libcvlt.c b/xlators/features/cloudsync/src/cloudsync-plugins/src/cvlt/src/libcvlt.c
index e827882f68d..5243c8bd492 100644
--- a/xlators/features/cloudsync/src/cloudsync-plugins/src/cvlt/src/libcvlt.c
+++ b/xlators/features/cloudsync/src/cloudsync-plugins/src/cvlt/src/libcvlt.c
@@ -264,10 +264,12 @@ cvlt_init_xlator(xlator_t *this, archive_t *arch, int num_req, int num_iatt)
return ret;
err:
- cvlt_free_resources(arch);
+ if (arch) {
+ cvlt_free_resources(arch);
- if (locked) {
- UNLOCK(&(arch->lock));
+ if (locked) {
+ UNLOCK(&(arch->lock));
+ }
}
return ret;
@@ -445,9 +447,7 @@ out:
STACK_UNWIND_STRICT(readv, frame, op_ret, op_errno, &iov, 1, &postbuf,
req->iobref, local->xattr_rsp);
- if (req) {
- cvlt_free_req(priv, req);
- }
+ cvlt_free_req(priv, req);
return;
}