Changeset 4973

Show
Ignore:
Timestamp:
10/21/07 16:31:38 (7 years ago)
Author:
khali
Message:

sensors: Fix file handle leak on library initialization error.

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r4971 r4973  
    44SVN HEAD 
    55  sensord: Reload config on SIGHUP rather than automatically 
     6  sensors: Fix file handle leak on library initialization error 
    67  sensors-detect: Fix SMSC LPC47B357/M967 detection 
    78                  Select the right driver for FSC chips 
  • lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/main.c

    r4902 r4973  
    103103        if (err) { 
    104104                fprintf(stderr, "sensors_init: %s\n", sensors_strerror(err)); 
     105                fclose(config_file); 
    105106                return 1; 
    106107        }