Fixed memory leak in master and slave destructors.

This commit is contained in:
Florian Pose 2006-10-19 14:05:56 +00:00
parent 6ba1713c36
commit 7642448f62
2 changed files with 4 additions and 0 deletions

View File

@ -218,6 +218,8 @@ void ec_master_clear(struct kobject *kobj /**< kobject of the master */)
}
EC_INFO("Master %i cleared.\n", master->index);
kfree(master);
}
/*****************************************************************************/

View File

@ -234,6 +234,8 @@ void ec_slave_clear(struct kobject *kobj /**< kobject of the slave */)
if (slave->eeprom_data) kfree(slave->eeprom_data);
if (slave->new_eeprom_data) kfree(slave->new_eeprom_data);
kfree(slave);
}
/*****************************************************************************/