1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 19:54:57 +08:00

Merge pull request #95 from wjwwood/issue_90_refresh

Release io_iterator_t object when finished with it in list_ports_osx.cc.
This commit is contained in:
William Woodall 2015-04-21 20:42:02 -07:00
commit 1a70b09bb1

View File

@ -279,6 +279,7 @@ serial::list_ports(void)
devices_found.push_back(port_info); devices_found.push_back(port_info);
} }
IOObjectRelease(serial_port_iterator);
return devices_found; return devices_found;
} }