port: free the port through _ep_port_free()

This commit is contained in:
Bert Belder 2017-09-14 00:41:27 +02:00
parent 45aaa10a62
commit a8807482b2

View File

@ -239,8 +239,7 @@ int ep_port_delete(ep_port_t* port_info) {
poll_group_allocator_delete(pga);
}
/* Finally, remove the port data. */
free(port_info);
_ep_port_free(port_info);
return 0;
}