---
title: free
framework: usbserialdriverkit
role: symbol
role_heading: Instance Method
path: usbserialdriverkit/iouserusbserial/free
---

# free

Performs any final cleanup for the service.

## Declaration

```occ
virtual void free();
```

## Discussion

Discussion Use this method to deallocate any memory associated with your service, or perform other cleanup tasks. The system calls this method at some point after it calls your service’s Stop method. Always call super at the end of your implementation of this method.

## See Also

### Configuring the Service

- [init](usbserialdriverkit/iouserusbserial/init.md)
- [Start](usbserialdriverkit/iouserusbserial/start.md)
- [Stop](usbserialdriverkit/iouserusbserial/stop.md)
- [initWith](usbserialdriverkit/iouserusbserial/initwith.md)
