OSDN Git Service

iio-sensors: add the missing closedir marshmallow-x86 android-x86-6.0-r1 android-x86-6.0-r2 android-x86-6.0-r3
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 25 Jul 2016 08:07:20 +0000 (16:07 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 25 Jul 2016 08:07:20 +0000 (16:07 +0800)
iio-sensors.cpp

index 230ccb7..d4ffa04 100644 (file)
@@ -421,6 +421,7 @@ SensorPollContext::SensorPollContext(const struct hw_module_t *module, struct hw
                                }
                        }
                }
+               closedir(dir);
        }
        ALOGD("%s: module=%p sensors: %d", __FUNCTION__, module, count);
 }