From 42aa78ae9890fbfef5728cb24c021f4e4e20e9f9 Mon Sep 17 00:00:00 2001 From: Konstantina Kastanara Date: Mon, 9 Mar 2015 15:48:42 +0200 Subject: [PATCH] Release io_iterator_t object when finished with it in list_ports_osx.cc. --- src/impl/list_ports/list_ports_osx.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/impl/list_ports/list_ports_osx.cc b/src/impl/list_ports/list_ports_osx.cc index 29da120..3fa001e 100644 --- a/src/impl/list_ports/list_ports_osx.cc +++ b/src/impl/list_ports/list_ports_osx.cc @@ -278,7 +278,8 @@ serial::list_ports(void) devices_found.push_back(port_info); } - + + IOObjectRelase(serial_port_iterator); return devices_found; }