diff options
author | arao <arao@redhat.com> | 2015-02-19 14:37:18 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-03-30 00:36:29 -0700 |
commit | dcff68eb2e9837a1db6634571e8e03fc57ff3182 (patch) | |
tree | 5437b52dfec9971021fab582d346f4eada5220c0 /xlators/performance/symlink-cache | |
parent | 9272b1cf5655fff625b254a1ea952dcefd3c3af1 (diff) |
symlink-cache: Fixing coverity issues
CID: 1124389
Misspelt variable leading to dead code
and memory leak, corrected.
Change-Id: I1278f07f81e2db33640e0f289558d919343cb6ce
BUG: 789278
Signed-off-by: arao <arao@redhat.com>
Reviewed-on: http://review.gluster.org/9694
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/performance/symlink-cache')
-rw-r--r-- | xlators/performance/symlink-cache/src/symlink-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/performance/symlink-cache/src/symlink-cache.c b/xlators/performance/symlink-cache/src/symlink-cache.c index 3b5fbc252ec..c65629b6993 100644 --- a/xlators/performance/symlink-cache/src/symlink-cache.c +++ b/xlators/performance/symlink-cache/src/symlink-cache.c @@ -186,7 +186,7 @@ sc_cache_validate (xlator_t *this, inode_t *inode, struct iatt *buf) sc_cache_set (this, inode, buf, NULL); inode_ctx_get (inode, this, &tmp_sc); - if (!sc) { + if (!tmp_sc) { gf_log (this->name, GF_LOG_ERROR, "out of memory :("); return 0; |