OSDN Git Service

iio-sensors: add the missing closedir
[android-x86/hardware-libsensors.git] / 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);
 }