diff options
-rw-r--r-- | xlators/mount/fuse/src/fuse-helpers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index 3e541979dc7..b65e6ebfc7b 100644 --- a/xlators/mount/fuse/src/fuse-helpers.c +++ b/xlators/mount/fuse/src/fuse-helpers.c @@ -249,8 +249,10 @@ out: ngrps = MIN(prcred->pr_ngroups, FUSE_MAX_AUX_GROUPS); if (call_stack_alloc_groups (frame->root, - ngrps) != 0) + ngrps) != 0) { + fclose (fp); return; + } } fclose (fp); } |