diff options
author | David Zeuthen <david@fubar.dk> | 2004-01-14 08:27:23 +0000 |
---|---|---|
committer | David Zeuthen <david@fubar.dk> | 2004-01-14 08:27:23 +0000 |
commit | caefcb702fc4941acea956e4bc07de2a7875ee21 (patch) | |
tree | 2baf85cf19316b174a1f972c2e7beca6518f6b8f | |
parent | bb0d4b097ffc69b130154c63fa6b3759ad0a66fc (diff) |
Doh, leaked a filedescriptor which is big trouble. Fixed
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | hald/linux/linux_class_block.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2004-01-14 David Zeuthen <david@fubar.dk> + + * hald/linux/linux_class_block.c (detect_media): Doh, leaked a + filedescriptor which is big trouble. Fixed + 2004-01-13 David Zeuthen <david@fubar.dk> * configure.in: Bump version number to 0.2.4 diff --git a/hald/linux/linux_class_block.c b/hald/linux/linux_class_block.c index 77755a05..c590fbc6 100644 --- a/hald/linux/linux_class_block.c +++ b/hald/linux/linux_class_block.c @@ -1049,6 +1049,7 @@ static dbus_bool_t detect_media(HalDevice* d) return FALSE; } + /* got a disc in drive, */ /* disc in drive; check if the HAL device representing @@ -1056,6 +1057,8 @@ static dbus_bool_t detect_media(HalDevice* d) * only one child) */ + close(fd); + child = ds_device_find_by_key_value_string("info.parent", d->udi, TRUE); @@ -1097,6 +1100,8 @@ static dbus_bool_t detect_media(HalDevice* d) } } /* if( is optical drive ) */ + + close(fd); return FALSE; } |