X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsensors.c;h=ff8b580de0a688e51bf6e02c6541de1d636b54ca;hb=2403dd00be7ee359a1da567ec1a3d1dddf179a58;hp=9cf0858ffeeff3c65b754c42896b325cdb85eeaa;hpb=2443213945a132eca96a0684137fe56538e206b7;p=collectd.git diff --git a/src/sensors.c b/src/sensors.c index 9cf0858f..ff8b580d 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -337,11 +337,10 @@ static void collectd_sensors_init (void) static void sensors_shutdown (void) { +#if SENSORS_HAVE_READ featurelist_t *thisft = first_feature; featurelist_t *nextft; - ignorelist_free (sensor_list); - while (thisft != NULL) { nextft = thisft->next; @@ -350,6 +349,9 @@ static void sensors_shutdown (void) } sensors_cleanup (); +#endif /* if SENSORS_HAVE_READ */ + + ignorelist_free (sensor_list); } static void sensors_voltage_write (char *host, char *inst, char *val)