summaryrefslogtreecommitdiff
path: root/lib/replace/tests
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/tests')
-rw-r--r--lib/replace/tests/os2_delete.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/replace/tests/os2_delete.c b/lib/replace/tests/os2_delete.c
index 4b99ccf9103..df8a8f59ec2 100644
--- a/lib/replace/tests/os2_delete.c
+++ b/lib/replace/tests/os2_delete.c
@@ -106,6 +106,7 @@ int test_readdir_os2_delete(void)
d = opendir(TESTDIR "/test0.txt");
if (d != NULL) FAILED("opendir() on file succeed");
if (errno != ENOTDIR) FAILED("opendir() on file didn't give ENOTDIR");
+ closedir(d);
d = opendir(TESTDIR);