From 2e973ea5f1392e7644b5d0706a34a7cae7bb7141 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 22 Apr 2021 15:01:39 +0200 Subject: lib:replace: Fix resource leak in os2_delete test Found by covscan Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- lib/replace/tests/os2_delete.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/replace/tests') 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); -- cgit v1.2.1