Fix tiny memory leak

Whoops, forgot to clear that collection of devices on success as well as failure.