aboutsummaryrefslogtreecommitdiff
path: root/tests/fs-tests/integrity
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fs-tests/integrity')
-rw-r--r--tests/fs-tests/integrity/integck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 748b6cb..8b1fb40 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -633,7 +633,6 @@ static int dir_remove(struct dir_info *dir)
static int file_new(struct dir_info *parent, const char *name)
{
- struct file_info *file;
char *path;
mode_t mode;
int fd;
@@ -661,9 +660,10 @@ static int file_new(struct dir_info *parent, const char *name)
CHECK(lstat(path, &st) == 0);
CHECK(S_ISREG(st.st_mode));
}
- file = add_dir_entry(parent, 'f', name, NULL);
- add_fd(file, fd);
+ add_dir_entry(parent, 'f', name, NULL);
+
+ close(fd);
free(path);
return 0;
}