--- a/etherlab/plc_etherlab.c Sun Jan 08 19:05:05 2012 +0100 +++ b/etherlab/plc_etherlab.c Tue Jan 10 15:10:08 2012 +0100 @@ -100,6 +100,8 @@ if (rt_fd >= 0) { rt_dev_close(rt_fd); } + //release master + ecrt_release_master(master); } void __retrieve_%(location)s(void)