2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 13:57:41 +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:
Jean Delvare 2007-09-19 15:10:06 +00:00
parent 347b0d1965
commit d3b00b0a86
2 changed files with 5 additions and 8 deletions

View File

@ -56,6 +56,7 @@ SVN HEAD
Program sensord: Syncronize the version with lm-sensors
Drop all the chip-specific support
Fix a memory leak when daemonizing
Fix memory leaks in command line parsing
Program sensors: Drop all the chip-specific support
Fix alignment of alarm for one-limit temperatures
Drop option -U

View File

@ -212,24 +212,20 @@ parseArgs
doSet = 1;
break;
case 'c':
if ((sensorsCfgFile = strdup (optarg)) == NULL)
return -1;
sensorsCfgFile = optarg;
break;
case 'p':
if ((pidFile = strdup (optarg)) == NULL)
return -1;
pidFile = optarg;
break;
case 'r':
if ((rrdFile = strdup (optarg)) == NULL)
return -1;
rrdFile = optarg;
break;
case 'd':
debug = 1;
break;
case 'g':
doCGI = 1;
if ((cgiDir = strdup (optarg)) == NULL)
return -1;
cgiDir = optarg;
break;
case 'v':
printf ("sensord version %s\n", LM_VERSION);