summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/torture/vfstest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index de68a0b3c5..2a191c2800 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -397,6 +397,10 @@ static void process_file(struct vfs_state *pvfs, char *filename) {
while (fgets(command, 3 * PATH_MAX, file) != NULL) {
process_cmd(pvfs, command);
}
+
+ if (file != stdin) {
+ fclose(file);
+ }
}
void exit_server(const char *reason)