fixed the bug
This commit is contained in:
@@ -270,7 +270,7 @@ void settings_load_ini_begin(void)
|
||||
|
||||
void settings_load_ini_key(const char *restrict section, const char *restrict key, const char *restrict value)
|
||||
{
|
||||
dbg("[%s] %s = %s", section, key, value);
|
||||
// dbg("[%s] %s = %s", section, key, value);
|
||||
static char namebuf[INI_KEY_MAX];
|
||||
|
||||
// SYSTEM and UNITS files must be separate.
|
||||
|
||||
@@ -74,6 +74,7 @@ static void free_le_unit(UlistEntry *le)
|
||||
{
|
||||
Unit *const pUnit = &le->unit;
|
||||
|
||||
assert_param(pUnit->data);
|
||||
pUnit->driver->deInit(pUnit);
|
||||
// Name is not expected to be freed by the deInit() function
|
||||
// - was alloc'd in the settings load loop
|
||||
|
||||
Reference in New Issue
Block a user