summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-09-26 21:54:06 +0530
committerAmar Tumballi <amarts@redhat.com>2018-09-27 03:55:48 +0000
commit7cf6688e9bb8384b383745751758d747a940ca3f (patch)
tree2c132645be43735bc1d54baea1791c25219a3093 /libglusterfs/src
parent5b91555a583da1ad7918c3fb16a2d92be1a19e9c (diff)
libglusterfs : fix coverity issue in store.c
This patch fixes CID 1395102 and 1395103. Change-Id: Ia6093dc6a04dce3f523e015cf1d6d4c6bfccc1f6 updates: bz#789278 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/store.c b/libglusterfs/src/store.c
index 39ca3ec1c74..7e03c2e332b 100644
--- a/libglusterfs/src/store.c
+++ b/libglusterfs/src/store.c
@@ -424,7 +424,7 @@ out:
if (fd >= 0)
sys_close(fd);
- if (ret < 0) {
+ if (ret) {
GF_FREE(spath);
GF_FREE(shandle);
}