From 7cf6688e9bb8384b383745751758d747a940ca3f Mon Sep 17 00:00:00 2001 From: Sunny Kumar Date: Wed, 26 Sep 2018 21:54:06 +0530 Subject: 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 --- libglusterfs/src/store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs') 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); } -- cgit