Fix memory leaks in the configuration file parser when a label, set,

compute or ignore statement is found before the first chip statement.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4790 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-09-06 12:22:59 +00:00
1 parent b5b5507599
commit 44b77f38e4
3 files changed
+53 -14

No files matched your search

+1 -1
View File
@@ -27,6 +27,7 @@
#include "conf.h"
#include "sysfs.h"
#include "scanner.h"
#include "init.h"
static void free_proc_chips_entry(sensors_proc_chips_entry entry);
static void free_chip_name(sensors_chip_name name);
@@ -36,7 +37,6 @@ static void free_label(sensors_label label);
static void free_set(sensors_set set);
static void free_compute(sensors_compute compute);
static void free_ignore(sensors_ignore ignore);
static void free_expr(sensors_expr *expr);
int sensors_init(FILE *input)
{