diff options
Diffstat (limited to 'tests/bugs/shard/bug-shard-zerofill.c')
-rw-r--r-- | tests/bugs/shard/bug-shard-zerofill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/shard/bug-shard-zerofill.c b/tests/bugs/shard/bug-shard-zerofill.c index 2ec411921cf..728e492c7ed 100644 --- a/tests/bugs/shard/bug-shard-zerofill.c +++ b/tests/bugs/shard/bug-shard-zerofill.c @@ -49,11 +49,11 @@ main (int argc, char *argv[]) goto out; } - glfs_close(fd); - ret = 0; out: + if (fd) + glfs_close(fd); glfs_fini (fs); return ret; } |