mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
Unify error reporting messages. Fix a memory leak in error path.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4639 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
4c88142226
commit
462e7d81df
1 file changed
+2
-1
@@ -108,8 +108,8 @@ static void print_generic_chip_temp(const sensors_chip_name *name,
|
||||
}
|
||||
|
||||
if (get_feature_value(name, feature, &val)) {
|
||||
printf("ERROR: Can't get %s data!\n", label);
|
||||
free(label);
|
||||
printf("ERROR: Can't get temperature data!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -227,6 +227,7 @@ static void print_generic_chip_in(const sensors_chip_name *name,
|
||||
|
||||
if (get_feature_value(name, feature, &val)) {
|
||||
printf("ERROR: Can't get %s data!\n", label);
|
||||
free(label);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user