diff options
author | maximilian attems <max@stro.at> | 2010-11-10 16:03:43 +0100 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2010-11-10 16:06:26 +0100 |
commit | 90f6eb895729f5eb28f972ac1a4aa5e4fc8db0f7 (patch) | |
tree | 32e996689027ce8ececa42c4133efb776ab8e176 | |
parent | a36bf3b59fbd2be6b745aff8a0f23ab848c38d20 (diff) | |
download | klibc-90f6eb895729f5eb28f972ac1a4aa5e4fc8db0f7.tar.gz |
[klibc] utils: losesetup close fd
fix ressource leakage.
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/utils/losetup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/utils/losetup.c b/usr/utils/losetup.c index 1104fd348d8f4..1a47fa95869da 100644 --- a/usr/utils/losetup.c +++ b/usr/utils/losetup.c @@ -339,6 +339,7 @@ int del_loop (const char *device) } if (ioctl (fd, LOOP_CLR_FD, 0) < 0) { perror ("ioctl: LOOP_CLR_FD"); + close (fd); return 1; } close (fd); |