Fix memory leak
Merge branch 'fix-memory-leak' of https://github.com/tbeu/Modelica_DeviceDrivers