mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-10-06 22:53:40 +08:00
Don't overwrite the original pointer returned by ec_find_adapters(), otherwise the linked list is leaked. Instead, save original pointer to the head of the list use and `adapters` as a temporary variable. Pass the original pointer to ec_free_adapters(). For win32, ec_free_adapters() was missing entirely.