mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
Fix memory leaks in command line parsing.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4816 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -56,6 +56,7 @@ SVN HEAD
|
|||||||
Program sensord: Syncronize the version with lm-sensors
|
Program sensord: Syncronize the version with lm-sensors
|
||||||
Drop all the chip-specific support
|
Drop all the chip-specific support
|
||||||
Fix a memory leak when daemonizing
|
Fix a memory leak when daemonizing
|
||||||
|
Fix memory leaks in command line parsing
|
||||||
Program sensors: Drop all the chip-specific support
|
Program sensors: Drop all the chip-specific support
|
||||||
Fix alignment of alarm for one-limit temperatures
|
Fix alignment of alarm for one-limit temperatures
|
||||||
Drop option -U
|
Drop option -U
|
||||||
|
@@ -212,24 +212,20 @@ parseArgs
|
|||||||
doSet = 1;
|
doSet = 1;
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
if ((sensorsCfgFile = strdup (optarg)) == NULL)
|
sensorsCfgFile = optarg;
|
||||||
return -1;
|
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
if ((pidFile = strdup (optarg)) == NULL)
|
pidFile = optarg;
|
||||||
return -1;
|
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
if ((rrdFile = strdup (optarg)) == NULL)
|
rrdFile = optarg;
|
||||||
return -1;
|
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
debug = 1;
|
debug = 1;
|
||||||
break;
|
break;
|
||||||
case 'g':
|
case 'g':
|
||||||
doCGI = 1;
|
doCGI = 1;
|
||||||
if ((cgiDir = strdup (optarg)) == NULL)
|
cgiDir = optarg;
|
||||||
return -1;
|
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
printf ("sensord version %s\n", LM_VERSION);
|
printf ("sensord version %s\n", LM_VERSION);
|
||||||
|
Reference in New Issue
Block a user