[klibc] [PATCH 1/2] tests: fcntl close fd
maximilian attems
max at stro.at
Wed Nov 10 06:45:13 PST 2010
fix ressource leak of fd.
Signed-off-by: maximilian attems <max at stro.at>
---
usr/klibc/tests/fcntl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/usr/klibc/tests/fcntl.c b/usr/klibc/tests/fcntl.c
index 97aa3a7..b2bdbdf 100644
--- a/usr/klibc/tests/fcntl.c
+++ b/usr/klibc/tests/fcntl.c
@@ -46,5 +46,6 @@ int main(int argc, char *argv[])
/* Eventually, fork and try to conflict with this lock... */
+ close(fd);
return 0;
}
--
1.7.2.3
More information about the klibc
mailing list