mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-24 12:04:33 +00:00
sensors: Fix file handle leak on library initialization error.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4973 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
a3be2931c6
commit
2b1c2a0e6f
2 files changed
+2
No files matched your search
@@ -3,6 +3,7 @@ lm-sensors CHANGES file
|
||||
|
||||
SVN HEAD
|
||||
sensord: Reload config on SIGHUP rather than automatically
|
||||
sensors: Fix file handle leak on library initialization error
|
||||
sensors-detect: Fix SMSC LPC47B357/M967 detection
|
||||
Select the right driver for FSC chips
|
||||
sensors-detect-stat.pl: Handle alternative chip lists
|
||||
|
||||
@@ -102,6 +102,7 @@ static int read_config_file(const char *config_file_name)
|
||||
err = sensors_init(config_file);
|
||||
if (err) {
|
||||
fprintf(stderr, "sensors_init: %s\n", sensors_strerror(err));
|
||||
fclose(config_file);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user