aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2010-11-10 15:23:24 +0100
committermaximilian attems <max@stro.at>2010-11-10 15:23:24 +0100
commit55c55fe197c095a6ed46e64fbb7a7cd72c841522 (patch)
tree3e54cd691da6ecb415c7a0760a415987c062064a
parenteff04da62a70303df1a648c256cbf489aa2aca28 (diff)
downloadklibc-55c55fe197c095a6ed46e64fbb7a7cd72c841522.tar.gz
[klibc] tests: fcntl close fd
fix ressource leak of fd. Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/klibc/tests/fcntl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/klibc/tests/fcntl.c b/usr/klibc/tests/fcntl.c
index 97aa3a71607fa..b2bdbdfd613ee 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;
}