From df4beaf9a45a52d913cdf991d070e73e6bbcaf6f Mon Sep 17 00:00:00 2001 From: Sunny Kumar Date: Mon, 27 Aug 2018 17:31:28 +0530 Subject: libglusterfs : fix coverity in store.c This patch fixes CID 1395103 and 1395102. Change-Id: I8c9fad85f254a55697b0bad185dcdd02be64f682 updates: bz#789278 Signed-off-by: Sunny Kumar --- libglusterfs/src/store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/store.c b/libglusterfs/src/store.c index d22027b32c7..15a888d36c0 100644 --- a/libglusterfs/src/store.c +++ b/libglusterfs/src/store.c @@ -420,7 +420,7 @@ out: if (fd >= 0) sys_close (fd); - if (ret == -1) { + if (ret < 0) { GF_FREE (spath); GF_FREE (shandle); } -- cgit