summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/store.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/store.c')
-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 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);
}