diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2018-08-27 17:31:28 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-08-28 05:46:59 +0000 |
commit | df4beaf9a45a52d913cdf991d070e73e6bbcaf6f (patch) | |
tree | 7b47dcb29e676d31a135650f9d7348647c148c63 /libglusterfs | |
parent | dcacaf15ec361a6f8bf79037ff47c2a8759b7170 (diff) |
libglusterfs : fix coverity in store.c
This patch fixes CID 1395103 and 1395102.
Change-Id: I8c9fad85f254a55697b0bad185dcdd02be64f682
updates: bz#789278
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/store.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |