Changeset 4636
- Timestamp:
- 07/21/07 10:44:31 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
lib/sysfs.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r4628 r4636 16 16 Delete all remnants of algorithm names 17 17 Drop all the chip-specific support 18 Fix a memory leak on error 18 19 Makefile: Drop the package and version targets 19 20 Man page sensors.conf.5: Update the chip statement section -
lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c
r4630 r4636 236 236 237 237 if ((bus_attr = sysfs_open_attribute(bus_path))) { 238 if (sysfs_read_attribute(bus_attr)) 239 return -SENSORS_ERR_PARSE; 238 if (sysfs_read_attribute(bus_attr)) { 239 sysfs_close_attribute(bus_attr); 240 goto exit_free; 241 } 240 242 241 243 if (bus_attr->value … … 254 256 entry.chip.bus = SENSORS_CHIP_NAME_BUS_PCI; 255 257 } else 256 return -SENSORS_ERR_PARSE;258 goto exit_free; 257 259 258 260 if (sensors_read_dynamic_chip(&entry, dev) < 0) 259 return -SENSORS_ERR_PARSE;261 goto exit_free; 260 262 sensors_add_proc_chips(&entry); 261 263 262 264 return 0; 265 266 exit_free: 267 free(entry.chip.prefix); 268 free(entry.chip.busname); 269 return -SENSORS_ERR_PARSE; 263 270 } 264 271
