Usbmux memory cleanup

Passes unit tests