Fixed memory leak in master and slave destructors.
--- a/master/master.c Wed Oct 18 13:19:21 2006 +0000
+++ b/master/master.c Thu Oct 19 14:05:56 2006 +0000
@@ -218,6 +218,8 @@
}
EC_INFO("Master %i cleared.\n", master->index);
+
+ kfree(master);
}
/*****************************************************************************/
--- a/master/slave.c Wed Oct 18 13:19:21 2006 +0000
+++ b/master/slave.c Thu Oct 19 14:05:56 2006 +0000
@@ -234,6 +234,8 @@
if (slave->eeprom_data) kfree(slave->eeprom_data);
if (slave->new_eeprom_data) kfree(slave->new_eeprom_data);
+
+ kfree(slave);
}
/*****************************************************************************/