summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/src/glfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c
index e94419c2d57..29ed47c0c61 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -666,5 +666,8 @@ glfs_fini (struct glfs *fs)
glfs_subvol_done (fs, subvol);
+ if (ctx->log.logfile)
+ fclose (ctx->log.logfile);
+
return ret;
}