mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-26 12:24:33 +00:00
Fix a memory leak on error in raw print mode.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4726 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
4e5d695411
commit
eaeaffb89b
2 files changed
+3
-4
No files matched your search
@@ -53,6 +53,7 @@ SVN HEAD
|
||||
Program sensors: Drop all the chip-specific support
|
||||
Fix alignment of alarm for one-limit temperatures
|
||||
Drop option -U
|
||||
Fix a memory leak on error (with -u)
|
||||
Program sensors-detect: Stop Super-I/O probe after first family success
|
||||
Fix SMSC DME1737 detection
|
||||
Add /usr/sbin to the PATH (#2199)
|
||||
|
||||
@@ -42,12 +42,10 @@ void print_chip_raw(const sensors_chip_name *name)
|
||||
continue;
|
||||
}
|
||||
if (data->mode & SENSORS_MODE_R) {
|
||||
if (sensors_get_value(name, data->number, &val)) {
|
||||
if (sensors_get_value(name, data->number, &val))
|
||||
printf("ERROR: Can't get feature `%s' data!\n",
|
||||
data->name);
|
||||
continue;
|
||||
}
|
||||
if (data->mapping != SENSORS_NO_MAPPING)
|
||||
else if (data->mapping != SENSORS_NO_MAPPING)
|
||||
printf(" %s: %.2f\n", label, val);
|
||||
else
|
||||
printf("%s: %.2f (%s)\n", label, val,
|
||||
|
||||
Reference in new issue
Block a user